about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tvix/default.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/tvix/default.nix b/tvix/default.nix
index 30235b438961..f6ab256ed473 100644
--- a/tvix/default.nix
+++ b/tvix/default.nix
@@ -85,6 +85,10 @@ let
         "futures-util"
       ]);
   };
+
+  # The cleaned sources.
+  src = depot.third_party.gitignoreSource ./.;
+
 in
 {
   inherit crates;
@@ -117,9 +121,8 @@ in
 
   # Build the Rust documentation for publishing on docs.tvix.dev.
   rust-docs = pkgs.stdenv.mkDerivation {
-    inherit cargoDeps;
+    inherit cargoDeps src;
     name = "tvix-rust-docs";
-    src = depot.third_party.gitignoreSource ./.;
     PROTO_ROOT = depot.tvix.proto;
 
     nativeBuildInputs = with pkgs; [
@@ -143,9 +146,8 @@ in
   # Run cargo clippy. We run it with -Dwarnings, so warnings cause a nonzero
   # exit code.
   clippy = pkgs.stdenv.mkDerivation {
-    inherit cargoDeps;
+    inherit cargoDeps src;
     name = "tvix-clippy";
-    src = depot.third_party.gitignoreSource ./.;
     PROTO_ROOT = depot.tvix.proto;
 
     buildInputs = [