about summary refs log tree commit diff
path: root/users/picnoir
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2024-04-20T19·01+0300
committerclbot <clbot@tvl.fyi>2024-04-23T15·14+0000
commit49b63fceeecca9192d2c418313b550e49ea6b365 (patch)
treed6f49c58ccc7560c991371b51fd399726fe28c68 /users/picnoir
parente18bc33529eded5375564b6271ffab24ca25e196 (diff)
fix(users/picnoir/tvix-daemon): gitignore target dir, use cleaned src r/7999
This prevents the nix build copying the target/ dir into the store
whenever this is built through Nix.

Change-Id: I397228fd8e2e3265ed87d3400fe927bc505da090
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11496
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: picnoir picnoir <picnoir@alternativebit.fr>
Diffstat (limited to 'users/picnoir')
-rw-r--r--users/picnoir/tvix-daemon/.gitignore1
-rw-r--r--users/picnoir/tvix-daemon/default.nix5
2 files changed, 4 insertions, 2 deletions
diff --git a/users/picnoir/tvix-daemon/.gitignore b/users/picnoir/tvix-daemon/.gitignore
new file mode 100644
index 000000000000..ea8c4bf7f35f
--- /dev/null
+++ b/users/picnoir/tvix-daemon/.gitignore
@@ -0,0 +1 @@
+/target
diff --git a/users/picnoir/tvix-daemon/default.nix b/users/picnoir/tvix-daemon/default.nix
index e9004e408208..78b9aa9a1d1c 100644
--- a/users/picnoir/tvix-daemon/default.nix
+++ b/users/picnoir/tvix-daemon/default.nix
@@ -20,9 +20,10 @@ in
   shell = (import ./shell.nix { inherit pkgs; });
   tvix-daemon = crate2nix.rootCrate.build;
   clippy = pkgs.stdenv.mkDerivation {
-    src = ./.;
-    cargoDeps = crate2nix.allWorkspaceMembers;
     name = "tvix-daemon-clippy";
+    # The cleaned sources.
+    src = depot.third_party.gitignoreSource ./.;
+    cargoDeps = crate2nix.allWorkspaceMembers;
 
     nativeBuildInputs = with pkgs; [
       cargo