#include "types.hh" #include "flakeref.hh" #include namespace nix { struct Value; class EvalState; struct FlakeRegistry { struct Entry { FlakeRef ref; }; std::map entries; }; Value * makeFlakeRegistryValue(EvalState & state); Value * makeFlakeValue(EvalState & state, std::string flakeUri, Value & v); struct Flake { FlakeId id; std::string description; Path path; std::vector requires; std::unique_ptr lockFile; Value * vProvides; // FIXME: gc // commit hash // date // content hash }; static Flake getFlake(EvalState & state, const FlakeRef & flakeRef); }