images/nix: initialize env for bash
Prior the shell was not sourcing `/etc/profile.d/nix.sh` because, although ENV is set, it will only be used if bash is invoked in posix mode (either as `sh` or with `--posix`).
This commit is contained in:
parent
53440b208e
commit
9f6b62f45b
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ let
|
||||||
Cmd = [ "/bin/bash" ];
|
Cmd = [ "/bin/bash" ];
|
||||||
Env = [
|
Env = [
|
||||||
"ENV=/etc/profile.d/nix.sh"
|
"ENV=/etc/profile.d/nix.sh"
|
||||||
|
"BASH_ENV=/etc/profile.d/nix.sh"
|
||||||
"NIX_BUILD_SHELL=/bin/bash"
|
"NIX_BUILD_SHELL=/bin/bash"
|
||||||
"NIX_PATH=nixpkgs=${toString <nixpkgs>}"
|
"NIX_PATH=nixpkgs=${toString <nixpkgs>}"
|
||||||
"PAGER=cat"
|
"PAGER=cat"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue