about summary refs log tree commit diff
path: root/users/edef/fetchroots/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/edef/fetchroots/default.nix')
-rw-r--r--users/edef/fetchroots/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/users/edef/fetchroots/default.nix b/users/edef/fetchroots/default.nix
new file mode 100644
index 000000000000..2b655ee9c3e9
--- /dev/null
+++ b/users/edef/fetchroots/default.nix
@@ -0,0 +1,11 @@
+{ pkgs, depot, ... }:
+
+(pkgs.callPackage ./Cargo.nix {
+  defaultCrateOverrides = (depot.tvix.utils.defaultCrateOverridesForPkgs pkgs) // {
+    fetchroots = prev: {
+      src = depot.tvix.utils.filterRustCrateSrc { root = prev.src.origSrc; };
+    };
+  };
+}).rootCrate.build.overrideAttrs {
+  meta.ci.extraSteps.crate2nix = depot.tvix.utils.mkCrate2nixCheck ./Cargo.nix;
+}