diff options
Diffstat (limited to 'nix/libstore/derivations.cc')
-rw-r--r-- | nix/libstore/derivations.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nix/libstore/derivations.cc b/nix/libstore/derivations.cc index b452aa2caf..d316f6c7bf 100644 --- a/nix/libstore/derivations.cc +++ b/nix/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; +} + + } |