buildFHSUserEnv: don't run bash in login mode for .env

Fixes https://github.com/NixOS/nixpkgs/issues/12406 for `.env`
This commit is contained in:
Nikolay Amiantov 2016-05-20 14:16:32 +03:00
parent f7aed7a00d
commit ca38376566

View File

@ -32,7 +32,7 @@ in runCommand name {
env = runCommand "${name}-shell-env" {
shellHook = ''
export CHROOTENV_EXTRA_BINDS="${lib.concatStringsSep ":" extraBindMounts}:$CHROOTENV_EXTRA_BINDS"
exec ${chroot-user}/bin/chroot-user ${env} bash -l ${init "bash"} "$(pwd)"
exec ${chroot-user}/bin/chroot-user ${env} bash ${init "bash"} "$(pwd)"
'';
} ''
echo >&2 ""