nix dev-shell: Execute shellHook

This commit is contained in:
Eelco Dolstra 2019-05-02 21:13:19 +02:00
parent 2919c496ea
commit dea18ff999

View file

@ -156,6 +156,8 @@ struct Common : InstallableCommand
out << "export NIX_BUILD_TOP=\"$(mktemp -d --tmpdir nix-shell.XXXXXX)\"\n";
for (auto & i : {"TMP", "TMPDIR", "TEMP", "TEMPDIR"})
out << fmt("export %s=\"$NIX_BUILD_TOP\"\n", i);
out << "eval \"$shellHook\"\n";
}
Strings getDefaultFlakeAttrPaths() override