diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2020-10-06 10:29:47 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2020-10-06 10:37:34 +0300 |
commit | c1cc0c4865a8bfff43c5c9bd6ae8dcadb061c8a0 (patch) | |
tree | 4be3ac0604cb824c72baf6cdbfef9630cb0ba97d | |
parent | 3b186ab72b135f0b9cbc3a59c4d8b6cee99b6e73 (diff) | |
download | guix-c1cc0c4865a8bfff43c5c9bd6ae8dcadb061c8a0.tar.gz |
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.
-rw-r--r-- | guix/build/cargo-build-system.scm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/guix/build/cargo-build-system.scm b/guix/build/cargo-build-system.scm index 95e8dd772a..117c8da66c 100644 --- a/guix/build/cargo-build-system.scm +++ b/guix/build/cargo-build-system.scm @@ -173,7 +173,13 @@ directory = '" port) (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 |