build-system/cargo: Use 'strip-store-file-name'.
This is a follow-up to f58b2f38e4
.
* guix/build/cargo-build-system.scm (configure): Use bespoke
'strip-store-file-name' function.
This commit is contained in:
parent
f69f37d54a
commit
43ffa11fdc
|
@ -99,7 +99,7 @@ Cargo.toml file present at its root."
|
||||||
(for-each
|
(for-each
|
||||||
(match-lambda
|
(match-lambda
|
||||||
((name . path)
|
((name . path)
|
||||||
(let* ((basepath (string-drop (basename path) 33))
|
(let* ((basepath (strip-store-file-name path))
|
||||||
(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
|
||||||
|
|
Loading…
Reference in New Issue