diff options
-rw-r--r-- | guix/build/cargo-build-system.scm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guix/build/cargo-build-system.scm b/guix/build/cargo-build-system.scm index 460d829b3c..4fa29b4cd3 100644 --- a/guix/build/cargo-build-system.scm +++ b/guix/build/cargo-build-system.scm @@ -43,6 +43,8 @@ (define* (configure #:key inputs #:allow-other-keys) "Replace Cargo.toml [dependencies] section with guix inputs." + ;; Make sure Cargo.toml is writeable when the crate uses git-fetch. + (chmod "Cargo.toml" #o644) (let ((port (open-file "Cargo.toml" "a" #:encoding "utf-8"))) (format port "~%[replace]~%") (for-each |