Skip to content

Commit

Permalink
docs: documentation for cleanSource
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Pflug authored and roberth committed Oct 2, 2018
1 parent 1643967 commit 1d68b5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/sources.nix
Expand Up @@ -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,
Expand Down

0 comments on commit 1d68b5e

Please sign in to comment.