From: Jacob Hrbek <kreyren@rixotstudio.cz>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Re: Unable to define shebang for guix shell file
Date: Tue, 09 Nov 2021 21:35:30 +0000 [thread overview]
Message-ID: <YsoKjRpppoP7mNFuU0pok0mhlWKs_cHLxuJTHsOSm6BARdADcgpVM34qFnwY5NcuZje0RNwD2QlELoCjPWpPZv0dzMV0j7sL9W7CVqrdhkA=@rixotstudio.cz> (raw)
In-Reply-To: <87czn9i6sk.fsf@gnu.org>
[-- Attachment #1.1: Type: text/plain, Size: 1256 bytes --]
> For now I use “#!/usr/bin/env -S guix shell --”, which works well enough for me. How does that sound? -- ludo@gnu.org
Not a solution as (AFIAK) POSIX only accepts one argument.
-- Jacob "Kreyren" Hrbek
Sent with ProtonMail Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, November 9th, 2021 at 5:21 PM, Ludovic Courtès <ludo@gnu.org> wrote:
> Hi,
>
> Jacob Hrbek kreyren@rixotstudio.cz skribis:
>
> > I am unable to define a guix shell file with shebang to decrease the complexity needed in the repository managing (so
> >
> > that i can just do ./path/to/guix.scm for guix to invoke `guix shell -f ./path/to/guix.scm` instead of having to
> >
> > sanitize the runtime) as the issue is that POSIX shebang allows only one argument and due to the way we handle
> >
> > reproducibility the shebang has to be `#!/usr/bin/env <command>`
> >
> > Proposing to integrate guix-shell for this purpose (inspired by NixOS) e.g.
>
> This was briefly discussed here:
>
> https://issues.guix.gnu.org/50960#22
>
> For now I use “#!/usr/bin/env -S guix shell --”, which works well enough
>
> for me. How does that sound?
>
> Thanks,
>
> Ludo’.
[-- Attachment #1.2: publickey - kreyren@rixotstudio.cz - 0x1677DB82.asc --]
[-- Type: application/pgp-keys, Size: 737 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]
next prev parent reply other threads:[~2021-11-09 21:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-01 0:08 Unable to define shebang for guix shell file Jacob Hrbek
2021-11-09 17:21 ` Ludovic Courtès
2021-11-09 21:35 ` Jacob Hrbek [this message]
2021-11-09 22:14 ` Carlo Zancanaro
2021-11-09 22:34 ` Jacob Hrbek
2021-11-17 10:51 ` Ludovic Courtès
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='YsoKjRpppoP7mNFuU0pok0mhlWKs_cHLxuJTHsOSm6BARdADcgpVM34qFnwY5NcuZje0RNwD2QlELoCjPWpPZv0dzMV0j7sL9W7CVqrdhkA=@rixotstudio.cz' \
--to=kreyren@rixotstudio.cz \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).