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
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
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
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
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