mirror of
https://github.com/NixOS/nix
synced 2025-07-04 11:21:47 +02:00
FlakeRegistry = FlakeRef -> FlakeRef
This commit is contained in:
parent
c64f98b883
commit
4ad4e48668
8 changed files with 105 additions and 180 deletions
|
@ -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 &);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue