nix-gitignore: filter-out .git

This commit is contained in:
Symphorien Gibol 2020-08-08 12:00:00 +00:00
parent 8e2b14aceb
commit a5a383a389

View file

@ -148,10 +148,10 @@ in rec {
'');
withGitignoreFile = patterns: root:
lib.toList patterns ++ [(root + "/.gitignore")];
lib.toList patterns ++ [ ".git" ] ++ [(root + "/.gitignore")];
withRecursiveGitignoreFile = patterns: root:
lib.toList patterns ++ [(compileRecursiveGitignore root)];
lib.toList patterns ++ [ ".git" ] ++ [(compileRecursiveGitignore root)];
# filterSource derivatives