diff --git a/flake.nix b/flake.nix index f753d9e..19032ed 100644 --- a/flake.nix +++ b/flake.nix @@ -26,11 +26,18 @@ }; # For building the package, we use only the files not ignored by Git as inputs. - # Also, flake.nix and flake.lock are not included to avoid rebuilds when + # Also, flake.nix, flake.lock and .gitea are not included to avoid rebuilds when # working on them. src = pkgs.lib.cleanSourceWith { - src = gitignore.lib.gitignoreSource ./.; - filter = path: type: builtins.elem (builtins.baseNameOf path) [ "flake.nix" "flake.lock" ]; + src = ./.; + filter = gitignore.lib.gitignoreFilterWith { + basePath = ./.; + extraRules = '' + flake.nix + flake.lock + .gitea + ''; + }; }; yore = pkgs.lib.pipe