From: zimoun <zimon.toutoune@gmail.com>
To: Kenny Ballou <kb@devnulllabs.io>, help-guix@gnu.org
Subject: Re: set environment variables with guix shell [-m manifest.scm]
Date: Thu, 05 May 2022 11:05:30 +0200 [thread overview]
Message-ID: <86o80c5oyt.fsf@gmail.com> (raw)
In-Reply-To: <87tua4kcoh.fsf@devnulllabs.io>
Hi,
On Wed, 04 May 2022 at 18:53, Kenny Ballou <kb@devnulllabs.io> wrote:
> However, one necessary feature of `guix shell` I'm not seeing: ability
> to set arbitrary environment variables when `guix shell` loads.
Yes, it misses an equivalent to ’nix-shell’ «shellHook» [1], as also
reported by [2] Well, maybe you could achieve something via ’--file’
instead of ’--manifest’, I do not know.
Since you use Direnv [3], maybe you can set the environment variables
there instead of in the manifest file.
1: <https://nixos.org/manual/nix/stable/command-ref/nix-shell.html>
2: <https://yhetil.org/guix/E92751B5-F3ED-47A0-B7D2-40F9D3F5C5B9@univ-grenoble-alpes.fr>
3: <https://github.com/direnv/direnv/wiki/GNU-Guix>
Cheers,
simon
next prev parent reply other threads:[~2022-05-05 10:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-05 0:53 set environment variables with guix shell [-m manifest.scm] Kenny Ballou
2022-05-05 2:29 ` Kenny Ballou
2022-05-05 9:05 ` zimoun [this message]
2022-05-06 22:20 ` Kenny Ballou
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86o80c5oyt.fsf@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=help-guix@gnu.org \
--cc=kb@devnulllabs.io \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).