about summary refs log tree commit diff
path: root/users/picnoir/tvix-daemon/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/picnoir/tvix-daemon/default.nix')
-rw-r--r--users/picnoir/tvix-daemon/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/users/picnoir/tvix-daemon/default.nix b/users/picnoir/tvix-daemon/default.nix
new file mode 100644
index 000000000000..68aa12d0e291
--- /dev/null
+++ b/users/picnoir/tvix-daemon/default.nix
@@ -0,0 +1,26 @@
+{ depot, lib, pkgs, ... }:
+
+let
+  crate2nix = pkgs.callPackage ./Cargo.nix {
+    defaultCrateOverrides = {
+      tvix-castore = prev: {
+        PROTO_ROOT = depot.tvix.castore.protos.protos;
+        nativeBuildInputs = protobufDep prev;
+      };
+
+      tvix-store = prev: {
+        PROTO_ROOT = depot.tvix.store.protos.protos;
+        nativeBuildInputs = protobufDep prev;
+      };
+    };
+  };
+  protobufDep = prev: (prev.nativeBuildInputs or [ ]) ++ [ pkgs.buildPackages.protobuf ];
+in
+{
+  shell = (import ./shell.nix { inherit pkgs; });
+  tvix-daemon = crate2nix.rootCrate.build;
+  meta.ci.targets = [
+    "tvix-daemon"
+    "shell"
+  ];
+}