Re: [Nix-dev] nix-env ignores NIX_PATH ?

2012-06-17 Thread Sergey Mironov
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

Re: [Nix-dev] nix-env ignores NIX_PATH ?

2012-06-17 Thread LluĂ­s Batlle i Rossell
On Sun, Jun 17, 2012 at 07:00:27PM +0400, Sergey Mironov wrote: 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

Re: [Nix-dev] nix-env ignores NIX_PATH ?

2012-06-17 Thread Marc Weber
In nixos/nixpkgs sourec you'll find nixpgks and nixos like placeholders. They are defined by NIX_PATH=nixpkgs=foo:nixos=bar. The reason is that in the past /etc/nixos/{nixpkgs,nixos} has been the source repostiories to build up nixos (This may have changed - I'm not up to date). Marc Weber

Re: [Nix-dev] nix-env ignores NIX_PATH ?

2012-06-17 Thread Kirill Elagin
2012/6/17 Sergey Mironov ier...@gmail.com Thanks, linking ~/proj/nix/nixpkgs into ~/.nix-defexpr works. But what is NIX_PATH for? It is used look up expressions enclosed in angle brackets as man says ;). For example, try this: ``NIX_PATH=hey=$HOME/code/nixos/nixpkgs nix-env -f 'hey' -qa