diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-08-14 17:19:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-14 17:19:19 +0200 |
commit | 13e49be6602314fe5e5d7beb8a807d5d892e864e (patch) | |
tree | e9dcdbcf58e0b45eb2abc068e9f475a28204c7be /perl/lib/Nix/Store.xs | |
parent | 7714d9a943bd36e984a1531fbc367ce124fc94da (diff) | |
parent | 1d2e80ddd669ef6da94c0f8c8ad734c1b0cf7d10 (diff) |
Merge pull request #3875 from obsidiansystems/new-interface-for-path-pathOpt
Offer a safer interface for path and pathOpt
Diffstat (limited to 'perl/lib/Nix/Store.xs')
-rw-r--r-- | perl/lib/Nix/Store.xs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl/lib/Nix/Store.xs b/perl/lib/Nix/Store.xs index 41846e6a7..4e038866e 100644 --- a/perl/lib/Nix/Store.xs +++ b/perl/lib/Nix/Store.xs @@ -303,10 +303,10 @@ SV * derivationFromPath(char * drvPath) hash = newHV(); HV * outputs = newHV(); - for (auto & i : drv.outputs) + for (auto & i : drv.outputsAndPaths(*store())) hv_store( outputs, i.first.c_str(), i.first.size(), - newSVpv(store()->printStorePath(i.second.path(*store(), drv.name)).c_str(), 0), + newSVpv(store()->printStorePath(i.second.second).c_str(), 0), 0); hv_stores(hash, "outputs", newRV((SV *) outputs)); |