Skip to content

Commit

Permalink
Use .gitignore in nix build excludes
Browse files Browse the repository at this point in the history
This avoids building with wrong pre-built data locally as well as in CI.

Signed-off-by: Sascha Grunert <[email protected]>
  • Loading branch information
saschagrunert committed Jul 17, 2024
1 parent 3bc422c commit fd3e37b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nix/derivation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fd3e37b

Please sign in to comment.