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 <[email protected]>:
> 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 <[email protected]>
>>
>> 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
>> [email protected]
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev