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

Add command flake clone

This commit is contained in:
Nick Van den Broeck 2019-03-21 09:30:16 +01:00
parent 939bee06cd
commit b42ba08fc8
5 changed files with 77 additions and 6 deletions

View file

@ -27,6 +27,8 @@ struct LockFile
std::map<FlakeId, FlakeRef> nonFlakeEntries;
};
typedef std::vector<std::shared_ptr<FlakeRegistry>> Registries;
Path getUserRegistryPath();
enum RegistryAccess { DisallowRegistry, AllowRegistry, AllowRegistryAtTop };
@ -86,4 +88,5 @@ Dependencies resolveFlake(EvalState &, const FlakeRef &, RegistryAccess registry
void updateLockFile(EvalState &, const Path & path);
void gitCloneFlake (std::string flakeUri, EvalState &, Registries, Path);
}