From: Olivier Dion via <help-guix@gnu.org>
To: help-guix@gnu.org
Subject: Patch '/usr/bin/env -S' shebangs
Date: Mon, 02 May 2022 12:03:01 -0400 [thread overview]
Message-ID: <87mtfz2a8a.fsf@laura> (raw)
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
reply other threads:[~2022-05-02 16:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mtfz2a8a.fsf@laura \
--to=help-guix@gnu.org \
--cc=olivier.dion@polymtl.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.