Re: set environment variables with guix shell [-m manifest.scm]

2022-05-06 Thread Kenny Ballou
On 2022-05-05 11:05 +02, zimoun wrote: > Wed, 04 May 2022 at 18:53, Kenny Ballou 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],

Re: set environment variables with guix shell [-m manifest.scm]

2022-05-05 Thread zimoun
Hi, On Wed, 04 May 2022 at 18:53, Kenny Ballou 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

Re: set environment variables with guix shell [-m manifest.scm]

2022-05-04 Thread Kenny Ballou
> ``` > (let ((z3-dir (run-with-store (open-connection) > (package-file z3-with-java > (setenv "LD_LIBRARY_PATH" (string-append z3-dir "/lib")) > (setenv "Z3_DIR" z3-dir)) > ... > ``` Because I cannot sit well enough alone. I have learned some more things: it appears

set environment variables with guix shell [-m manifest.scm]

2022-05-04 Thread Kenny Ballou
Dear list, I have been using nix-shell for a while now to have on-demand/ad-hoc development environments for different projects. These are hooked in with direnv and the whole experience is quite nice. However, I would like to translate these to Guix because I find the tooling around Guix and