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 angle brackets > ... > The search path can be extended using the -I option, which takes > precedence over NIX_PATH.
nix-build, nix-instantiate and nixos-rebuild, I think. > 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 _______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
