efraim pushed a commit to branch master
in repository guix.

commit f58b2f38e4dfdbb8473fb2816d44fae6ad9cbc79
Author: Efraim Flashner <efr...@flashner.co.il>
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

Reply via email to