utils: Change 'patch-shebang' to not try to patch Rust source files.
* guix/build/utils.scm (patch-shebang): Match only absolute paths.
This commit is contained in:
parent
1b2b7765a0
commit
88f8549449
@ -894,7 +894,7 @@ transferred and the continuation of the transfer as a thunk."
|
|||||||
(x x)))
|
(x x)))
|
||||||
|
|
||||||
(define patch-shebang
|
(define patch-shebang
|
||||||
(let ((shebang-rx (make-regexp "^[[:blank:]]*([[:graph:]]+)[[:blank:]]*([[:graph:]]*)(.*)$")))
|
(let ((shebang-rx (make-regexp "^[[:blank:]]*(/[[:graph:]]+)[[:blank:]]*([[:graph:]]*)(.*)$")))
|
||||||
(lambda* (file
|
(lambda* (file
|
||||||
#:optional
|
#:optional
|
||||||
(path (search-path-as-string->list (getenv "PATH")))
|
(path (search-path-as-string->list (getenv "PATH")))
|
||||||
|
Loading…
Reference in New Issue
Block a user