mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +03:00
cleanSource: Support Mercurial
This commit is contained in:
parent
9e7fe29e41
commit
34638ebc1e
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ rec {
|
||||||
cleanSource =
|
cleanSource =
|
||||||
let filter = name: type: let baseName = baseNameOf (toString name); in ! (
|
let filter = name: type: let baseName = baseNameOf (toString name); in ! (
|
||||||
# Filter out Subversion and CVS directories.
|
# Filter out Subversion and CVS directories.
|
||||||
(type == "directory" && (baseName == ".git" || baseName == ".svn" || baseName == "CVS")) ||
|
(type == "directory" && (baseName == ".git" || baseName == ".svn" || baseName == "CVS" || baseName == ".hg")) ||
|
||||||
# Filter out backup files.
|
# Filter out backup files.
|
||||||
(lib.hasSuffix "~" baseName)
|
(lib.hasSuffix "~" baseName)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue