aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops/flake.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexpr/primops/flake.hh')
-rw-r--r--src/libexpr/primops/flake.hh14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libexpr/primops/flake.hh b/src/libexpr/primops/flake.hh
index e504dc196..af28bc5b0 100644
--- a/src/libexpr/primops/flake.hh
+++ b/src/libexpr/primops/flake.hh
@@ -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);
}