summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-09-19 02:23:45 +0530
committerArun Isaac2022-09-19 02:23:45 +0530
commit5c86492acbc97881a04fb1d8a6be818fb980a1cd (patch)
tree4c8b31943d57f847d5e612369983e779521392a2
parenta92eadccca2150fd173cd60d7113ab8588d9f9ca (diff)
downloadtissue-5c86492acbc97881a04fb1d8a6be818fb980a1cd.tar.gz
tissue-5c86492acbc97881a04fb1d8a6be818fb980a1cd.tar.lz
tissue-5c86492acbc97881a04fb1d8a6be818fb980a1cd.zip
guix.scm: Patch shebang in executable script.
* guix.scm (tissue)[arguments]: Add patch-source-shebangs script.
-rw-r--r--guix.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/guix.scm b/guix.scm
index 9eedc33..9ae544b 100644
--- a/guix.scm
+++ b/guix.scm
@@ -40,6 +40,11 @@
#:phases
(with-imported-modules '((guix build guile-build-system))
#~(modify-phases %standard-phases
+ (replace 'patch-source-shebangs
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "bin/tissue"
+ (("^exec guile")
+ (string-append "exec " (search-input-file inputs "/bin/guile"))))))
(delete 'configure)
(add-after 'install 'wrap
(lambda* (#:key inputs outputs #:allow-other-keys)