aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops/flake.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-02-12 18:23:11 +0100
committerEelco Dolstra <edolstra@gmail.com>2019-02-12 18:23:11 +0100
commit91a6a47b0e98f4114c263ef32895e749639c50ad (patch)
tree47b665ea501291b5c67949fc8418ce6f4d4243f2 /src/libexpr/primops/flake.hh
parent0cd7f2cd8d99071ebfb06a8f0d6a18efed6cd42e (diff)
Improve flake references
Diffstat (limited to 'src/libexpr/primops/flake.hh')
-rw-r--r--src/libexpr/primops/flake.hh17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/libexpr/primops/flake.hh b/src/libexpr/primops/flake.hh
new file mode 100644
index 000000000..6be6e99d2
--- /dev/null
+++ b/src/libexpr/primops/flake.hh
@@ -0,0 +1,17 @@
+#include "types.hh"
+#include "flakeref.hh"
+
+#include <variant>
+
+namespace nix {
+
+struct FlakeRegistry
+{
+ struct Entry
+ {
+ FlakeRef ref;
+ };
+ std::map<FlakeId, Entry> entries;
+};
+
+}