Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Have you seen the library function cleanSource() and related routines? I use these for excluding files (e.g. by filename extension) from being visible in builds. This might suit your use case too.

https://github.com/NixOS/nixpkgs/blob/master/lib/sources.nix



Yeah, and I use cleanSource, but I find it to be pretty obtuse and full of edge cases.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: