about summary refs log tree commit diff
path: root/tvix/tools/weave/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/tools/weave/default.nix')
-rw-r--r--tvix/tools/weave/default.nix10
1 files changed, 8 insertions, 2 deletions
diff --git a/tvix/tools/weave/default.nix b/tvix/tools/weave/default.nix
index 5a84d7f64287..8c5e1be928d1 100644
--- a/tvix/tools/weave/default.nix
+++ b/tvix/tools/weave/default.nix
@@ -1,3 +1,9 @@
-{ pkgs, ... }:
+{ pkgs, depot, ... }:
 
-(pkgs.callPackage ./Cargo.nix { }).rootCrate.build
+(pkgs.callPackage ./Cargo.nix {
+  defaultCrateOverrides = (depot.tvix.utils.defaultCrateOverridesForPkgs pkgs) // {
+    weave = prev: {
+      src = depot.tvix.utils.filterRustCrateSrc { root = prev.src.origSrc; };
+    };
+  };
+}).rootCrate.build