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

Alfredo Di Napoli alfredo.dinapoli at gmail.com
Sat May 17 09:49:42 CEST 2014


Ok,
I have found the solution myself thanks to the inputs Mateusz gave me.
It turns out that "myEnvFun" is well suited for creating environments to be
installed with:

nix-build

doing so caused the cmds I have put inside "extraCmds" to be ran. This was
not enough for me, because I needed the --pure nix-shell gives me.
The solution was to indeed use a "mkDerivation" on the stdenv:

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

Hope it might help someone else as well!
Alfredo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140517/0bbdd123/attachment-0001.html 


More information about the nix-dev mailing list