From 49b63fceeecca9192d2c418313b550e49ea6b365 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 20 Apr 2024 22:01:04 +0300 Subject: fix(users/picnoir/tvix-daemon): gitignore target dir, use cleaned src 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 Reviewed-by: picnoir picnoir --- users/picnoir/tvix-daemon/.gitignore | 1 + users/picnoir/tvix-daemon/default.nix | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 users/picnoir/tvix-daemon/.gitignore (limited to 'users/picnoir/tvix-daemon') 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 -- cgit 1.4.1