9.nix-gitignore/default.nix
2019-09-06 21:44:27 +02:00

13 lines
279 B
Nix

{ lib ? import <nixpkgs/lib> }:
let
find-files = import ./find-files.nix { inherit lib; };
in
{
inherit (find-files) gitignoreFilter;
gitignoreSource = path: lib.cleanSourceWith {
name = "source";
filter = find-files.gitignoreFilter path;
src = path;
};
}