[Nix-dev] Setting an environment variable in "extraCmds"

Alfredo Di Napoli alfredo.dinapoli at gmail.com
Fri May 16 22:44:32 CEST 2014


Hello everyone,

I have just recently started using Nix and I find it quite cool. Something
I'm trying to do is to sandbox an Haskell GHC version to bootstrap, via
nix-shell, a completely isolated environment. This is what I have achieved
so far:

https://gist.github.com/adinapoli/7bce04c56325d5bd9c47

Now, if I type:

nix-shell --pure

it does work, but if I type

echo $PATH

my PATH won't contain what I have just specified in extraCmds.
Any idea of what I'm doing wrong?

Thanks in advance!
Alfredo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140516/89d1d404/attachment.html 


More information about the nix-dev mailing list