Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lukego
on Feb 23, 2018
|
parent
|
context
|
favorite
| on:
Nix 2.0 Released
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
thinkpad20
on Feb 23, 2018
[–]
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:
https://github.com/NixOS/nixpkgs/blob/master/lib/sources.nix