* Patch '/usr/bin/env -S' shebangs
@ 2022-05-02 16:03 Olivier Dion via
0 siblings, 0 replies; only message in thread
From: Olivier Dion via @ 2022-05-02 16:03 UTC (permalink / raw)
To: help-guix
Hi all,
I have a couple of scripts -- that are not to be installed -- in my
project.
These scripts all have the following shebang:
--8<---------------cut here---------------start------------->8---
#!/usr/bin/env -S guile --no-auto-compile -e main -s
--8<---------------cut here---------------end--------------->8---
Apparently, Guix can not patch these shebangs on its own, so I added the
following phase to my package's definition:
--8<---------------cut here---------------start------------->8---
(add-after 'unpack 'more-patch-source-shebangs
(lambda _
(substitute* '("pre-inst-env"
"tools/run-tests"
"tools/test-driver"
"tools/compile-scheme")
(("/usr/bin/env") (which "env")))))
--8<---------------cut here---------------end--------------->8---
I'm wondering if this is the good thing to do? Or maybe there's a more
clean alternative?
FYI, I added this phase before 'patch-source-shebangs to avoid
errors.
Regards,
old
--
Olivier Dion
oldiob.dev
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-02 16:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-02 16:03 Patch '/usr/bin/env -S' shebangs Olivier Dion via
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.