all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "John D. Boy" <jboy@bius.moe>
To: help-guix@gnu.org
Subject: Re: guix environment shebang interpreter
Date: Thu, 06 Feb 2020 23:22:54 +0000	[thread overview]
Message-ID: <ef35c23c-2912-4bca-a606-f884f6b1a79a@www.fastmail.com> (raw)
In-Reply-To: <mailman.123.1581008426.401.help-guix@gnu.org>

> > 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

       reply	other threads:[~2020-02-06 23:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.123.1581008426.401.help-guix@gnu.org>
2020-02-06 23:22 ` John D. Boy [this message]
2020-02-07 14:57   ` guix environment shebang interpreter mlell
2020-01-21  0:02 EuAndreh via
2020-02-06 10:37 ` mlell
2020-02-13 15:43   ` EuAndreh via

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=ef35c23c-2912-4bca-a606-f884f6b1a79a@www.fastmail.com \
    --to=jboy@bius.moe \
    --cc=help-guix@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 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.