aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 fa8fe2e9b..fbfe24bbe 100644
--- a/src/nix/shell.cc
+++ b/src/nix/shell.cc
@@ -279,7 +279,7 @@ struct CmdDevShell : Common, MixEnvironment
setEnviron();
// prevent garbage collection until shell exits
- setenv("GCROOT", gcroot.data(), 1);
+ setenv("NIX_GCROOT", gcroot.data(), 1);
auto args = Strings{std::string(baseNameOf(shell)), "--rcfile", rcFilePath};