flake: tweak nix-filter's list of excludes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-09-10 23:40:16 +02:00
parent 6c56c34183
commit c3b9ddee27
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -82,12 +82,19 @@
# In 'nix develop', we don't need a copy of the source tree # In 'nix develop', we don't need a copy of the source tree
# in the Nix store. # in the Nix store.
src = nix-filter.lib.filter { src = nix-filter.lib.filter {
# when in doubt, check out
# https://github.com/numtide/nix-filter#design-notes
# tl;dr: it'd be best to include folders, however there are
# currently issues with that approach.
root = lib.cleanSource self; root = lib.cleanSource self;
exclude = [ exclude = [
./flake.nix ./flake.nix
./flake.lock ./flake.lock
./default.nix ./default.nix
./shell.nix ./shell.nix
./overlay.nix
./README.md
./.envrc ./.envrc
./.drone.star ./.drone.star
@ -98,6 +105,15 @@
./.pre-commit-config.yaml ./.pre-commit-config.yaml
./.badges ./.badges
# math-optim program output
./out
./res
# nix result symlink
./result
# the entire .git folder
./.git
]; ];
}; };