efraim pushed a commit to branch rust-team in repository guix. commit 6c75d9ef4b8fdd19d7d5c9ba80b44eccfccbece2 Author: Efraim Flashner <efr...@flashner.co.il> AuthorDate: Thu Feb 13 14:37:01 2025 +0200
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 --- gnu/packages/rust.scm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 5a5c51aea3..f1daed2c77 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")))