aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéophane Hufschmitt <regnat@users.noreply.github.com>2021-06-21 15:52:01 +0200
committerGitHub <noreply@github.com>2021-06-21 15:52:01 +0200
commitce674cb2cf97fc14ce48acef7f8ef88f4ac771f2 (patch)
tree2964453f43cfe783b94604b4f4b7262511fac3ad /src
parent2cf591a134f3ec6f634b47eeb522f422c64a9d33 (diff)
Properly set the output env variables
Co-authored-by: John Ericson <git@JohnEricson.me>
Diffstat (limited to 'src')
-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) {