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

Merge remote-tracking branch 'tweag/flake-clone' into flakes

This commit is contained in:
Eelco Dolstra 2019-04-24 12:47:35 +02:00
commit 21d5abfc14
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 @@ ResolvedFlake resolveFlake(EvalState &, const FlakeRef &, RegistryAccess registr
void updateLockFile(EvalState &, const Path & path);
void gitCloneFlake (std::string flakeUri, EvalState &, Registries, Path);
}