aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-01-21 21:18:52 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-01-21 21:18:52 +0100
commit6fadb3fc03a1a3d51a1aaea003bfbe347c3879b3 (patch)
tree2bd6687cc2c2cb83a9ed4666ed06afb5c8a967ec /src/libexpr/primops.cc
parent62f712c8aedc08d6478ce9b380a2cf317d7e4d3a (diff)
parentaef635da78d33bf679f49fd10e7130d918a82549 (diff)
Merge remote-tracking branch 'origin/master' into flakes
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r--src/libexpr/primops.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 2df9277c9..af6c91954 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -732,6 +732,8 @@ static void prim_derivationStrict(EvalState & state, const Pos & pos, Value * *
the hash. */
for (auto & i : outputs) {
if (!jsonObject) drv.env[i] = "";
+ drv.outputs.insert_or_assign(i,
+ DerivationOutput(StorePath::dummy.clone(), "", ""));
}
Hash h = hashDerivationModulo(*state.store, Derivation(drv), true);