[Nix-dev] nix-env ignores NIX_PATH ?

Sergey Mironov ierton at gmail.com
Sun Jun 17 17:00:27 CEST 2012


Thanks, linking ~/proj/nix/nixpkgs into ~/.nix-defexpr works. But what
is NIX_PATH for? man nix-env says:

       NIX_PATH
           A colon-separated list of directories used to look up Nix
           expressions enclosed in angle brackets
           ...
           The search path can be extended using the -I option, which takes
           precedence over NIX_PATH.


2012/6/8 Kirill Elagin <kirelagin at gmail.com>:
> That's not what NIX_PATH is supposed to do. You are looking for `-f` option
> (or create a link to your tree in ~/.nix-defexpr).
>
> --
> Кирилл Елагин
>
>
> 2012/6/2 Sergey Mironov <ierton at gmail.com>
>>
>> Hi. I am trying to do
>>
>> $ export NIX_PATH=$HOME/proj/nix/nixpkgs
>> $ nix-env -v -i smth
>>
>> where smth is a package available in my personal dev tree located in
>> $HOME/proj/nix/nixpkgs. According to logs, nix-env starts to search in
>> channel's source, than in depricated /etc/nixos/ tree, but doesn't
>> attempt to look into my tree. What am I doing wrong?
>>
>> Thanks,
>> Sergey
>>
>> PS
>> nixos-rebuild (and thus nix-build) reacts on NIX_PATH correctly
>> PPS
>> $ nix-env --version
>> nix-env (Nix) 1.0
>> _______________________________________________
>> nix-dev mailing list
>> nix-dev at lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>


More information about the nix-dev mailing list