[Nix-dev] setting environment values.
Tim Sears
tim at timsears.com
Wed Jan 28 18:02:08 CET 2015
Thanks Stewart. Do you happen to know if other nix commands (nix-shell,
nix-build) use or ignore the extraCmds attribute? Or if any build phase
uses it. I haven't found much documentation or code so far.
I made some progress based on an earlier suggestion, by simply adding
environment variables in the call to mkDerivation. The package is a library
and want to propagate the variables to another library that depends on this
one, and so on, downstream.
On Wed, Jan 28, 2015 at 1:03 AM, stewart mackenzie <setori88 at gmail.com>
wrote:
> add something like this:
>
> extraCmds = ''
> export SOMEPATH_ERLANG=${erlang}/opt/path/to/libs;
>
> '';
> };
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150128/06804df5/attachment.html
More information about the nix-dev
mailing list