all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: mlell@posteo.de
To: "John D. Boy" <jboy@bius.moe>
Cc: Help-Guix <help-guix-bounces+mlell=posteo.de@gnu.org>, help-guix@gnu.org
Subject: Re: guix environment shebang interpreter
Date: Fri, 07 Feb 2020 15:57:43 +0100	[thread overview]
Message-ID: <5b97063254662ed22e22bd9cc9c0bcef@posteo.de> (raw)
In-Reply-To: <ef35c23c-2912-4bca-a606-f884f6b1a79a@www.fastmail.com>

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 the same packages.

Best regards,
Moritz

---
OpenPGP: 0xB4CCD0677340821E

Am 07.02.2020 00:22 schrieb John D. Boy:
>> > 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-07 14:57 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 ` guix environment shebang interpreter John D. Boy
2020-02-07 14:57   ` mlell [this message]
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=5b97063254662ed22e22bd9cc9c0bcef@posteo.de \
    --to=mlell@posteo.de \
    --cc=help-guix-bounces+mlell=posteo.de@gnu.org \
    --cc=help-guix@gnu.org \
    --cc=jboy@bius.moe \
    /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.