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.")
1430 (mkdir-p (string-append out dest)) 1430 (mkdir-p (string-append out dest))
1431 (copy-recursively "library" (string-append out dest "/library")) 1431 (copy-recursively "library" (string-append out dest "/library"))
1432 (copy-recursively "src" (string-append out dest "/src"))))) 1432 (copy-recursively "src" (string-append out dest "/src")))))
1433 (add-after 'install 'remove-uninstall-script 1433 (add-before 'install 'remove-uninstall-script
1434 (lambda* (#:key outputs #:allow-other-keys) 1434 (lambda _
1435 ;; This script has no use on Guix 1435 ;; Don't install the uninstall script. It has no use
1436 ;; and it retains a reference to the host's bash. 1436 ;; on Guix and it retains a reference to the host's bash.
1437 (delete-file (string-append (assoc-ref outputs "out") 1437 (substitute* "src/tools/rust-installer/install-template.sh"
1438 "/lib/rustlib/uninstall.sh")))) 1438 (("install_uninstaller \"") "# install_uninstaller \""))))
1439 (add-after 'install-rust-src 'wrap-rust-analyzer 1439 (add-after 'install-rust-src 'wrap-rust-analyzer
1440 (lambda* (#:key outputs #:allow-other-keys) 1440 (lambda* (#:key outputs #:allow-other-keys)
1441 (let ((bin (string-append (assoc-ref outputs "tools") "/bin"))) 1441 (let ((bin (string-append (assoc-ref outputs "tools") "/bin")))