aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libexpr/primops.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 4d64bf32a..121dbca9b 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -1114,7 +1114,10 @@ void EvalState::createBaseEnv()
let outPath = builtins.getAttr (output + \"Path\") strict; in { \
name = output; \
value = attrs // { \
- drvPath = strict.drvPath; inherit outPath; type = \"derivation\"; \
+ drvPath = strict.drvPath; \
+ inherit outPath; \
+ type = \"derivation\"; \
+ currentOutput = output; \
} // outputsAttrs // { all = allList; }; \
}; \
outputsList = if attrs ? outputs then \