mirror of
https://github.com/NixOS/nix
synced 2025-06-28 01:11:15 +02:00
Implemented "nix flake info"
This commit is contained in:
parent
d342de02b9
commit
cfb6ab80ce
4 changed files with 47 additions and 14 deletions
|
@ -21,4 +21,18 @@ Value * makeFlakeRegistryValue(EvalState & state);
|
|||
|
||||
Value * makeFlakeValue(EvalState & state, std::string flakeUri, Value & v);
|
||||
|
||||
struct Flake
|
||||
{
|
||||
FlakeId id;
|
||||
std::string description;
|
||||
Path path;
|
||||
std::vector<FlakeRef> requires;
|
||||
std::unique_ptr<FlakeRegistry> lockFile;
|
||||
Value * vProvides; // FIXME: gc
|
||||
// commit hash
|
||||
// date
|
||||
// content hash
|
||||
};
|
||||
|
||||
static Flake getFlake(EvalState & state, const FlakeRef & flakeRef);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue