mirror of
https://github.com/NixOS/nix
synced 2025-06-28 01:11:15 +02:00
Issue #15 is finished
This commit is contained in:
parent
e007f367bd
commit
5e4d92d267
6 changed files with 136 additions and 15 deletions
|
@ -14,14 +14,19 @@ struct FlakeRegistry
|
|||
{
|
||||
FlakeRef ref;
|
||||
Entry(const FlakeRef & flakeRef) : ref(flakeRef) {};
|
||||
Entry operator=(const Entry & entry) { return Entry(entry.ref); }
|
||||
};
|
||||
std::map<FlakeId, Entry> entries;
|
||||
};
|
||||
|
||||
Path getUserRegistryPath();
|
||||
|
||||
Value * makeFlakeRegistryValue(EvalState & state);
|
||||
|
||||
Value * makeFlakeValue(EvalState & state, std::string flakeUri, Value & v);
|
||||
|
||||
std::unique_ptr<FlakeRegistry> readRegistry(const Path &);
|
||||
|
||||
void writeRegistry(FlakeRegistry, Path);
|
||||
|
||||
struct Flake
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue