I know there are already a lot of nix source filters out there, but bear with me.
- the various
.gitignoresource filters are not good enough! In monorepos, I only want to add what I need and not rebuild the world otherwise.
lib.cleanSource: the MVP of filters but clearly not powerful enough.
libalso has some source filters but I find them confusing to use.
So his is a different attempt. It’s a very small and self-contained project. If successful, I think it should be added to the nixpkgs/lib.
Please have a look, and give me feedback!