diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-07-27 16:48:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-27 16:48:41 +0200 |
commit | a5f7d310dd10fe86b6f6aa1c2771c30f113741d4 (patch) | |
tree | ed365ca233fa7edfba9551539c4a903f109abef0 /perl | |
parent | d7c0f094cbcfe1ae4ccc3d54baec00b66ccb1ed0 (diff) | |
parent | d5bb67cfa4da130a9949a9b4eb8aba6cb74ea5c7 (diff) |
Merge pull request #3795 from obsidiansystems/optional-derivation-output-storepath
Only store hash in DerivationOutput for fixed output derivations
Diffstat (limited to 'perl')
-rw-r--r-- | perl/lib/Nix/Store.xs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/perl/lib/Nix/Store.xs b/perl/lib/Nix/Store.xs index f14c3f73f..ec85b844a 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(); |