cleanSources: Filter *.o and *.so

This commit is contained in:
Eelco Dolstra 2014-02-06 12:30:03 +01:00
parent 6b613f285c
commit de9ed78ab2

View File

@ -12,7 +12,10 @@ rec {
# Filter out Subversion and CVS directories.
(type == "directory" && (baseName == ".git" || baseName == ".svn" || baseName == "CVS" || baseName == ".hg")) ||
# Filter out backup files.
(lib.hasSuffix "~" baseName)
lib.hasSuffix "~" baseName ||
# Filter out generates files.
lib.hasSuffix ".o" baseName ||
lib.hasSuffix ".so" baseName
);
in src: builtins.filterSource filter src;