[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unable to define shebang for guix shell file
From: |
Ludovic Courtès |
Subject: |
Re: Unable to define shebang for guix shell file |
Date: |
Tue, 09 Nov 2021 18:21:31 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
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’.