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.
This commit is contained in:
Efraim Flashner 2019-09-12 20:20:26 +03:00
parent abed5df777
commit f58b2f38e4
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -99,7 +99,7 @@ (define* (configure #:key inputs
(for-each (for-each
(match-lambda (match-lambda
((name . path) ((name . path)
(let* ((basepath (basename path)) (let* ((basepath (string-drop (basename path) 33))
(crate-dir (string-append vendor-dir "/" basepath))) (crate-dir (string-append vendor-dir "/" basepath)))
(and (crate-src? path) (and (crate-src? path)
;; Gracefully handle duplicate inputs ;; Gracefully handle duplicate inputs