mirror of
https://github.com/nix-community/docker-nixpkgs.git
synced 2026-01-12 04:40:42 -05:00
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:
committed by
zimbatm
parent
53440b208e
commit
9f6b62f45b
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user