diff options
Diffstat (limited to 'src/libstore/derivations.cc')
-rw-r--r-- | src/libstore/derivations.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstore/derivations.cc b/src/libstore/derivations.cc index 7234ae5630ed..fbc1d99f3d6f 100644 --- a/src/libstore/derivations.cc +++ b/src/libstore/derivations.cc @@ -285,4 +285,13 @@ bool wantOutput(const string & output, const std::set<string> & wanted) } +PathSet outputPaths(const Derivation & drv) +{ + PathSet paths; + for (auto & i : drv.outputs) + paths.insert(i.second.path); + return paths; +} + + } |