mirror of
https://github.com/NixOS/nix
synced 2025-07-02 17:41:48 +02:00
Export outputPaths function
This is useful for the new hydra-queue-runner.
This commit is contained in:
parent
f90e9b65d6
commit
b65875f859
3 changed files with 12 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue