nix: add NIX_BUILD_SHELL

This is useful to avoid having nix-shell evaluate nixpkgs twice.
This commit is contained in:
zimbatm 2020-02-07 21:35:51 +01:00
parent 1305bc0290
commit e58ed5052b
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7

View file

@ -45,6 +45,7 @@ let
Cmd = [ "/bin/bash" ]; Cmd = [ "/bin/bash" ];
Env = [ Env = [
"ENV=/etc/profile.d/nix.sh" "ENV=/etc/profile.d/nix.sh"
"NIX_BUILD_SHELL=/bin/bash"
"NIX_PATH=nixpkgs=${toString <nixpkgs>}" "NIX_PATH=nixpkgs=${toString <nixpkgs>}"
"PAGER=cat" "PAGER=cat"
"PATH=/usr/bin:/bin" "PATH=/usr/bin:/bin"