aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nix/develop.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/develop.cc b/src/nix/develop.cc
index aeeaf3e13..350b08648 100644
--- a/src/nix/develop.cc
+++ b/src/nix/develop.cc
@@ -150,7 +150,7 @@ StorePath getDerivationEnvironment(ref<Store> store, const StorePath & drvPath)
output.second = {
.output = DerivationOutputDeferred{},
};
- drv.env[output.first] = "";
+ drv.env[output.first] = hashPlaceholder(output.first);
}
} else {
for (auto & output : drv.outputs) {