about summary refs log tree commit diff
path: root/users/edef/crunch-v2/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/edef/crunch-v2/default.nix')
-rw-r--r--users/edef/crunch-v2/default.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/users/edef/crunch-v2/default.nix b/users/edef/crunch-v2/default.nix
new file mode 100644
index 000000000000..8014aa9443c8
--- /dev/null
+++ b/users/edef/crunch-v2/default.nix
@@ -0,0 +1,15 @@
+{ pkgs, depot, lib, ... }:
+
+(pkgs.callPackage ./Cargo.nix {
+  defaultCrateOverrides = (depot.tvix.utils.defaultCrateOverridesForPkgs pkgs) // {
+    crunch-v2 = prev: {
+      src = depot.tvix.utils.filterRustCrateSrc rec {
+        root = prev.src.origSrc;
+        extraFileset = lib.fileset.fileFilter (f: f.hasExt "proto") root;
+      };
+      nativeBuildInputs = [ pkgs.protobuf ];
+    };
+  };
+}).rootCrate.build.overrideAttrs {
+  meta.ci.extraSteps.crate2nix-check = depot.tvix.utils.mkCrate2nixCheck ./Cargo.nix;
+}