As you might have seen, I’ve been working on a new Nixpkgs library to improve source filtering, sponsored by Antithesis. This library will be included in NixOS 23.11, planned to be released this week. To give some motivation and background, here’s a blog post about it!
Furthermore, there’s an official tutorial and reference documentation too