From fd3e37be3b86a59bff0c460c3e5c976ca2661c2e Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Wed, 17 Jul 2024 09:37:45 +0200 Subject: [PATCH] Use `.gitignore` in nix build excludes This avoids building with wrong pre-built data locally as well as in CI. Signed-off-by: Sascha Grunert --- nix/derivation.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nix/derivation.nix b/nix/derivation.nix index 5362f990..b16bc666 100644 --- a/nix/derivation.nix +++ b/nix/derivation.nix @@ -3,7 +3,8 @@ }: with pkgs; stdenv.mkDerivation rec { name = "conmon"; - src = ./..; + # Use Pure to avoid exuding the .git directory + src = nix-gitignore.gitignoreSourcePure [ ../.gitignore ] ./..; vendorHash = null; doCheck = false; enableParallelBuilding = true;