summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2025-02-13 14:37:01 +0200
committerHilton Chain <hako@ultrarare.space>2025-08-21 19:07:29 +0800
commit035a31940765adf2c2c991eb6f30380f96ecc3a5 (patch)
tree362d11f1a5868d0c9ef525c80abb6a772348bd61 /gnu/packages
parent0636946d934087534deac14f3bbdafb8bdfca2fc (diff)
gnu: rust: Remove install script from all outputs.
* gnu/packages/rust.scm (rust)[arguments]: Adjust the custom 'remove-uninstall-script phase to not install the uninstall script in any output. Change-Id: I8be03d0badabb587668a7b44758702f3e17d2654
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/rust.scm12
1 files changed, 6 insertions, 6 deletions
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 5a5c51aea33..f1daed2c77e 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -1430,12 +1430,12 @@ safety and thread safety guarantees.")
(mkdir-p (string-append out dest))
(copy-recursively "library" (string-append out dest "/library"))
(copy-recursively "src" (string-append out dest "/src")))))
- (add-after 'install 'remove-uninstall-script
- (lambda* (#:key outputs #:allow-other-keys)
- ;; This script has no use on Guix
- ;; and it retains a reference to the host's bash.
- (delete-file (string-append (assoc-ref outputs "out")
- "/lib/rustlib/uninstall.sh"))))
+ (add-before 'install 'remove-uninstall-script
+ (lambda _
+ ;; Don't install the uninstall script. It has no use
+ ;; on Guix and it retains a reference to the host's bash.
+ (substitute* "src/tools/rust-installer/install-template.sh"
+ (("install_uninstaller \"") "# install_uninstaller \""))))
(add-after 'install-rust-src 'wrap-rust-analyzer
(lambda* (#:key outputs #:allow-other-keys)
(let ((bin (string-append (assoc-ref outputs "tools") "/bin")))