mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
build-system/cargo: Don't install .crates.toml file.
Fixes <https://issues.guix.gnu.org/43810>. * guix/build/cargo-build-system.scm (install): Remove installed .crates.toml file.
This commit is contained in:
parent
3b186ab72b
commit
c1cc0c4865
1 changed files with 7 additions and 1 deletions
|
@ -173,7 +173,13 @@ (define* (install #:key inputs outputs skip-build? features #:allow-other-keys)
|
|||
(or skip-build?
|
||||
(not (has-executable-target?))
|
||||
(invoke "cargo" "install" "--path" "." "--root" out
|
||||
"--features" (string-join features)))))
|
||||
"--features" (string-join features)))
|
||||
|
||||
;; This is a file which we definitely don't need installed.
|
||||
(when (file-exists? (string-append out "/.crates.toml"))
|
||||
(delete-file (string-append out "/.crates.toml")))
|
||||
|
||||
#t))
|
||||
|
||||
(define %standard-phases
|
||||
(modify-phases gnu:%standard-phases
|
||||
|
|
Loading…
Reference in a new issue