From f58b2f38e4dfdbb8473fb2816d44fae6ad9cbc79 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 12 Sep 2019 20:20:26 +0300 Subject: 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(-) (limited to 'guix') diff --git a/guix/build/cargo-build-system.scm b/guix/build/cargo-build-system.scm index f173b64c83..0134997c27 100644 --- a/guix/build/cargo-build-system.scm +++ b/guix/build/cargo-build-system.scm @@ -99,7 +99,7 @@ (define* (configure #:key inputs (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 -- cgit v1.2.3