1
0
Fork 0
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:
Eelco Dolstra 2015-06-10 16:17:06 +02:00
parent f90e9b65d6
commit b65875f859
3 changed files with 12 additions and 11 deletions

View file

@ -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;
}
}