aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@scratchpost.org>2020-02-17 16:52:55 +0100
committerDanny Milosavljevic <dannym@scratchpost.org>2020-02-17 16:52:55 +0100
commit88f85494491a0cd4d4262c97860f01e99c2bc313 (patch)
tree11d9919753fa25112a92a1e993b6e6b046e2ac79
parent1b2b7765a027908cdbeef7c96fd203509c9492de (diff)
downloadguix-88f85494491a0cd4d4262c97860f01e99c2bc313.tar
guix-88f85494491a0cd4d4262c97860f01e99c2bc313.tar.gz
utils: Change 'patch-shebang' to not try to patch Rust source files.
* guix/build/utils.scm (patch-shebang): Match only absolute paths.
-rw-r--r--guix/build/utils.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/build/utils.scm b/guix/build/utils.scm
index a398bf9b90..419c10195b 100644
--- a/guix/build/utils.scm
+++ b/guix/build/utils.scm
@@ -894,7 +894,7 @@ transferred and the continuation of the transfer as a thunk."
(x x)))
(define patch-shebang
- (let ((shebang-rx (make-regexp "^[[:blank:]]*([[:graph:]]+)[[:blank:]]*([[:graph:]]*)(.*)$")))
+ (let ((shebang-rx (make-regexp "^[[:blank:]]*(/[[:graph:]]+)[[:blank:]]*([[:graph:]]*)(.*)$")))
(lambda* (file
#:optional
(path (search-path-as-string->list (getenv "PATH")))