summaryrefslogtreecommitdiffstats
path: root/perl
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-07-27 16:13:57 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-07-27 16:13:57 +0000
commit43f2bd8dc5950c38a817242884870f344a84a291 (patch)
treec9b28ba4c468446911f8bc5411933a334b1fe184 /perl
parent699fc89b394ef5347ff0508abe389e77a7cde09e (diff)
parenta5f7d310dd10fe86b6f6aa1c2771c30f113741d4 (diff)
Merge remote-tracking branch 'upstream/master' into hash-always-has-type
Diffstat (limited to 'perl')
-rw-r--r--perl/lib/Nix/Store.xs5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl/lib/Nix/Store.xs b/perl/lib/Nix/Store.xs
index 894791700..c412e4640 100644
--- a/perl/lib/Nix/Store.xs
+++ b/perl/lib/Nix/Store.xs
@@ -304,7 +304,10 @@ SV * derivationFromPath(char * drvPath)
HV * outputs = newHV();
for (auto & i : drv.outputs)
- hv_store(outputs, i.first.c_str(), i.first.size(), newSVpv(store()->printStorePath(i.second.path).c_str(), 0), 0);
+ hv_store(
+ outputs, i.first.c_str(), i.first.size(),
+ newSVpv(store()->printStorePath(i.second.path(*store(), drv.name)).c_str(), 0),
+ 0);
hv_stores(hash, "outputs", newRV((SV *) outputs));
AV * inputDrvs = newAV();