|
From: | John D. Boy |
Subject: | Re: guix environment shebang interpreter |
Date: | Thu, 06 Feb 2020 23:22:54 +0000 |
User-agent: | Cyrus-JMAP/3.1.7-802-g7a41c81-fmstable-20200203v1 |
> > 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 work by passing -S to env: #!/usr/bin/env -S guix environment --ad-hoc python python-pandas python-numpy -- python3 See a short test script here: https://gist.github.com/jboynyc/1faa5dc4e278d5b6284795f780d22764
[Prev in Thread] | Current Thread | [Next in Thread] |