filterSource
We use filterSource e1 e2
to selectively copy files to the Nix storeᛦ when copying a source. e1
is a predicate function in two arguments, the full path to the file and the type of the file. Each file or directory in e2
which returns true
under e1
will be copied to the store and all others will be ignored.