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:
Efraim Flashner 2020-10-06 10:29:47 +03:00
parent 3b186ab72b
commit c1cc0c4865
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -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