1
0
Fork 0
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:
Nick Van den Broeck 2019-03-10 07:05:05 +01:00
parent e007f367bd
commit 5e4d92d267
6 changed files with 136 additions and 15 deletions

View file

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