Easy source filtering with file sets

Excellent. With that, I can retire numtide/nix-filter.

1 Like

fileFilter has a name attribute, but is there a way to get the full path?

As it is, I don’t see any way to check the full path (e.g. if I want to mimic another tool’s wildcard pattern matching). Have I missed something?

See `lib.fileset.fileFilter` should allow filtering by file subpath/components · Issue #269504 · NixOS/nixpkgs · GitHub and `lib.fileset` should have a way to filter directories · Issue #271307 · NixOS/nixpkgs · GitHub

2 Likes