aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-05-02 21:13:19 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-05-02 21:13:19 +0200
commitdea18ff99913349ef0f54b80d45c8dfdc8b31f65 (patch)
treec26c10b012b4620c328d9298f33e099dc5432705 /src/nix
parent2919c496ea10a99d08baffbef485cfb719233b9f (diff)
nix dev-shell: Execute shellHook
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/shell.cc2
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