Programming & DevOps
Nix Overlays: Add attribute to “lib” and avoid “infinite recursion error”
Today, I was about to add an attribute to the lib attribute of nixpkgs using a nixpkgs overlay. I thought that this is as straight forward as adding regular packages directly in an overlay. This wasn’t my first time using overlays, but my first time adding something to lib. There was a tiny but ugly pitfalls, that made me create this short blog post. Let’s look at the following code foo.nix: With I...
Read more