aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-08-09 18:51:52 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-08-09 18:51:52 +0200
commit662db921e2f5bebeb0fd455aa744708468df8bfa (patch)
tree2b06cb79015e50b3e6e1872651f6cc10fa86649d /src/nix
parentab16b3d076e9cd3ecfdcde128f43dd486b072557 (diff)
nix dev-shell: Set dontAddDisableDepTrack
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/shell.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/shell.cc b/src/nix/shell.cc
index 5f2724961..a3827c297 100644
--- a/src/nix/shell.cc
+++ b/src/nix/shell.cc
@@ -72,7 +72,7 @@ Path getDerivationEnvironment(ref<Store> store, Derivation drv)
if (builder != "bash")
throw Error("'nix shell' only works on derivations that use 'bash' as their builder");
- drv.args = {"-c", "set -e; export IN_NIX_SHELL=impure; if [[ -n $stdenv ]]; then source $stdenv/setup; fi; set > $out"};
+ drv.args = {"-c", "set -e; export IN_NIX_SHELL=impure; export dontAddDisableDepTrack=1; if [[ -n $stdenv ]]; then source $stdenv/setup; fi; set > $out"};
/* Remove derivation checks. */
drv.env.erase("allowedReferences");