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 <flokli@flokli.de>
Reviewed-by: picnoir picnoir <picnoir@alternativebit.fr>
This commit is contained in:
Florian Klink 2024-04-20 22:01:04 +03:00 committed by clbot
parent e18bc33529
commit 49b63fceee
2 changed files with 4 additions and 2 deletions

1
users/picnoir/tvix-daemon/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/target

View file

@ -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