[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: build: cargo-build-system: Strip store hash from vendor-dir.
From: |
guix-commits |
Subject: |
01/01: build: cargo-build-system: Strip store hash from vendor-dir. |
Date: |
Thu, 12 Sep 2019 13:41:54 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit f58b2f38e4dfdbb8473fb2816d44fae6ad9cbc79
Author: Efraim Flashner <address@hidden>
Date: Thu Sep 12 20:20:26 2019 +0300
build: cargo-build-system: Strip store hash from vendor-dir.
* guix/build/cargo-build-system.scm (configure): When copying the
sources into the vendor-dir strip off the hash before the package name.
---
guix/build/cargo-build-system.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/guix/build/cargo-build-system.scm
b/guix/build/cargo-build-system.scm
index f173b64..0134997 100644
--- a/guix/build/cargo-build-system.scm
+++ b/guix/build/cargo-build-system.scm
@@ -99,7 +99,7 @@ Cargo.toml file present at its root."
(for-each
(match-lambda
((name . path)
- (let* ((basepath (basename path))
+ (let* ((basepath (string-drop (basename path) 33))
(crate-dir (string-append vendor-dir "/" basepath)))
(and (crate-src? path)
;; Gracefully handle duplicate inputs