[Nix-dev] setting environment values.

Luca Bruno lethalman88 at gmail.com
Wed Jan 28 09:52:35 CET 2015


On 27/01/2015 19:48, Tim Sears wrote:
> I am writing a nix expression to port some libraries from another distro.
>
> The libraries have slightly non-standard locations so I would
> typically add some line to my .bashrc file like
>
> export SOMEVAR="somestring"
> export SOMEPATH=/opt/path/to/libs
> export LD_LIBRARY_PATH=$SOMEPATH:$LD_LIBRARY_PATH.
>
> What is the nix way of doing this? I can set SOMEVAR="somestring" in
> the derivation expression, and it appears in my environment after
> executing nix-shell, but SOMEPATH should look like $out/path/to/libs
> and I am not sure how/where to set that. 
>
It's a little hard to answer such a question, we miss some information.
First of all, paste the expression.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150128/05eecf50/attachment-0001.html 


More information about the nix-dev mailing list