Nix-shell reevaluating shellHook from shell configured by nix-shell some_file.nix
for next new nix-shell -p
#10679
Labels
nix-shell some_file.nix
for next new nix-shell -p
#10679
nix-shell seems to rerun shellHook from
for most recently used file.nix after
when invoking
nix-shell
with--package
parameter in any directory.When invoking only
nix-shell
and ommiting--package
is emited.
Steps To Reproduce
test/shells
new_shell.nix
insideshells
new_shell.nix
nix-shell new_shell.nix
when inshells
foldertest
nix-shell
resultserror: getting status of '/tmp/test/default.nix': No such file or directory
Running
nix-shell --packages
results in evaluation of shellHook fromnew_shell.nix
file and spawning new shell.Then repeating
nix-shell ---packages
runs shellHook againExpected behavior
When running
nix-shell --packages
insidenix-shell
configured by some file, shellHooks from previous shell are omitted for new shell.nix-env --version
outputnix-env (Nix) 2.18.1
Additional context
The text was updated successfully, but these errors were encountered: