Merge pull request #47681 from NixOS/docs-lib-sources

docs: documentation for `cleanSource`
This commit is contained in:
Matthew Bauer 2018-10-02 16:08:27 -05:00 committed by GitHub
commit 8fd8d72527
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,10 @@ rec {
(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; };
# Like `builtins.filterSource`, except it will compose with itself,