diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-05-02 21:13:19 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-05-02 21:13:19 +0200 |
commit | dea18ff99913349ef0f54b80d45c8dfdc8b31f65 (patch) | |
tree | c26c10b012b4620c328d9298f33e099dc5432705 /src/nix/shell.cc | |
parent | 2919c496ea10a99d08baffbef485cfb719233b9f (diff) |
nix dev-shell: Execute shellHook
Diffstat (limited to 'src/nix/shell.cc')
-rw-r--r-- | src/nix/shell.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix/shell.cc b/src/nix/shell.cc index 2e17111d6..d3ecf8de4 100644 --- a/src/nix/shell.cc +++ b/src/nix/shell.cc @@ -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 |