From b0d39aa19f180ad6cab634d11d4e51a0d3bd7710 Mon Sep 17 00:00:00 2001 From: sterni Date: Sun, 4 Sep 2022 19:09:30 +0200 Subject: fix(tvix/eval): don't rebuild drv upon changes in cargo target dir This avoids unnecessary rebuilds of //tvix/eval when working on it locally using impure cargo. Change-Id: I028033a6345a9655e2877a534448706b8f85a1a1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6317 Tested-by: BuildkiteCI Autosubmit: sterni Reviewed-by: tazjin --- tvix/eval/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tvix') diff --git a/tvix/eval/default.nix b/tvix/eval/default.nix index ea049eb492eb..a3b4a01ee01e 100644 --- a/tvix/eval/default.nix +++ b/tvix/eval/default.nix @@ -2,7 +2,10 @@ lib.fix (self: depot.third_party.naersk.buildPackage { - src = ./.; + src = depot.third_party.gitignoreSource ./.; + # see https://github.com/nix-community/naersk/issues/169 + root = depot.nix.sparseTree ./. [ ./Cargo.lock ./Cargo.toml ]; + doCheck = true; cargoBuildOptions = opts: opts ++ [ "--all-targets" ]; -- cgit 1.4.1