1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-04 11:21:47 +02:00

FlakeRegistry = FlakeRef -> FlakeRef

This commit is contained in:
Nick Van den Broeck 2019-04-08 19:03:00 +02:00
parent c64f98b883
commit 4ad4e48668
8 changed files with 105 additions and 180 deletions

View file

@ -10,13 +10,7 @@ class EvalState;
struct FlakeRegistry
{
struct Entry
{
FlakeRef ref;
Entry(const FlakeRef & flakeRef) : ref(flakeRef) {};
Entry operator=(const Entry & entry) { return Entry(entry.ref); }
};
std::map<FlakeAlias, Entry> entries;
std::map<FlakeRef, FlakeRef> entries;
};
struct LockFile
@ -79,7 +73,7 @@ struct Dependencies
Dependencies(const Flake & flake) : flake(flake) {}
};
Dependencies resolveFlake(EvalState &, const FlakeRef &, bool impureTopRef, bool isTopFlake);
Dependencies resolveFlake(EvalState &, const FlakeRef &, bool impureTopRef, bool isTopFlake = true);
FlakeRegistry updateLockFile(EvalState &, Flake &);