Merge pull request #47681 from NixOS/docs-lib-sources
docs: documentation for `cleanSource`
This commit is contained in:
commit
8fd8d72527
@ -26,6 +26,10 @@ rec {
|
|||||||
(type == "symlink" && lib.hasPrefix "result" baseName)
|
(type == "symlink" && lib.hasPrefix "result" baseName)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
# Filters a source tree removing version control files and directories using cleanSourceWith
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# cleanSource ./.
|
||||||
cleanSource = src: cleanSourceWith { filter = cleanSourceFilter; inherit src; };
|
cleanSource = src: cleanSourceWith { filter = cleanSourceFilter; inherit src; };
|
||||||
|
|
||||||
# Like `builtins.filterSource`, except it will compose with itself,
|
# Like `builtins.filterSource`, except it will compose with itself,
|
||||||
|
Loading…
Reference in New Issue
Block a user