gnu: rust: Move remove-uninstall-script to rust.
* gnu/packages/rust.scm (rust)[arguments]: Add 'remove-uninstall-script phase. (make-rust-sysroot)[arguments]: Remove 'remove-uninstall-script phase. Change-Id: I45bcaaa89003693b490b914efbfa34236a8f4db6
This commit is contained in:
parent
193a01d73f
commit
072a9c60ab
@ -1041,6 +1041,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-after 'install-rust-src 'wrap-rust-analyzer
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((bin (string-append (assoc-ref outputs "tools") "/bin")))
|
||||
@ -1195,12 +1201,6 @@ ar = \"" (search-input-file inputs (string-append "/bin/" ,(ar-for-target target
|
||||
(replace 'install
|
||||
(lambda _
|
||||
(invoke "./x.py" "install" "library/std")))
|
||||
(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"))))
|
||||
(delete 'install-rust-src)
|
||||
(delete 'wrap-rust-analyzer)
|
||||
(delete 'wrap-rustc)))))
|
||||
|
Loading…
Reference in New Issue
Block a user