mirror of
https://github.com/NixOS/nix
synced 2025-07-01 00:07:58 +02:00
Add a method to compute the closure of a realisation
Only considers the closure in term of `Realisation`, ignores all the opaque inputs. Dunno whether that’s the nicest solution, need to think it through a bit
This commit is contained in:
parent
eca6ff06d6
commit
af3afd25ea
2 changed files with 41 additions and 0 deletions
|
@ -38,6 +38,9 @@ struct Realisation {
|
|||
bool checkSignature(const PublicKeys & publicKeys, const std::string & sig) const;
|
||||
size_t checkSignatures(const PublicKeys & publicKeys) const;
|
||||
|
||||
static std::set<Realisation> closure(Store &, std::set<Realisation>);
|
||||
static void closure(Store &, std::set<Realisation>, std::set<Realisation>& res);
|
||||
|
||||
StorePath getPath() const { return outPath; }
|
||||
|
||||
GENERATE_CMP(Realisation, me->id, me->outPath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue