ml...@posteo.de writes:
> But, one answer there has a possible solution for you:
> https://unix.stackexchange.com/a/399698
>
> --8<---
> #!/bin/sh -
>
> if [ "$1" != "--really" ]; then exec bash --posix -- "$0" --really "$@";
> fi
>
> shift
>
> #
Great!
however, note that at two different time points, you can get different
versions of python with
this command as the executing machine might have different versions of
guix.
Only if you pull a specific version of guix (e.g. with guix pull
--commit) and have it in your PATH
you will get
> > Is there a Guix equivalent of the nix-shell shebang?
> You could imagine something like:
>
> #! /usr/bin/env guix environment --ad-hoc PKG1 PKG2 ... --
> INTERPRETER
>
> But alas, on linux you cannot put more than one argument in the shebang
> line.
I have successfully gotten this to
Hi!
Is there a Guix equivalent of the nix-shell shebang?
You could imagine something like:
#! /usr/bin/env guix environment --ad-hoc PKG1 PKG2 ... --
INTERPRETER
But alas, on linux you cannot put more than one argument in the shebang
line.
See this discussion:
https://unix.stack
Hi Guix!
Is there a Guix equivalent of the nix-shell shebang?
Sample from Nix documentation
(https://nixos.org/nix/manual/#use-as-a-interpreter):
--8<---cut here---start->8---
#!/usr/bin/env nix-shell
#!nix-shell -i perl -p perl perlPackages.HTMLTokeParserSimp