nix build: Use Nix search path
That is, unless --file is specified, the Nix search path is synthesized into an attribute set. Thus you can say $ nix build nixpkgs.hello assuming $NIX_PATH contains an entry of the form "nixpkgs=...". This is more verbose than $ nix build hello but is less ambiguous.
Showing
- src/libexpr/eval.cc 4 additions, 3 deletionssrc/libexpr/eval.cc
- src/libexpr/eval.hh 4 additions, 2 deletionssrc/libexpr/eval.hh
- src/nix-env/nix-env.cc 1 addition, 2 deletionssrc/nix-env/nix-env.cc
- src/nix/installables.cc 37 additions, 5 deletionssrc/nix/installables.cc
- src/nix/installables.hh 11 additions, 1 deletionsrc/nix/installables.hh
Loading
Please register or sign in to comment