3 ms·
I haven't used std, but I would like to point you at what I think is the ideal way to organize a lot of nix: readTree from the virus lounge[0]. It doesn't add
by hamandcheese 3y ago
I haven't used std, but I would like to point you at what I think is the ideal way to organize a lot of nix: readTree from the virus lounge[0].
It doesn't add kitschy terms like "Cell" and "growOn", it's just a way to standardize attribute names according to where things live in the filesystem.
So in their repo, /foo/bar/baz.nix has the attribute path depot.foo.bar.baz
I will say that to understand how it works you need to have a solid grasp of the nix language. But once established I think it's a pattern that noobs could learn in a very quick and superficial way.
[0]: https://cs.tvl.fyi/depot/-/blob/nix/readTree/README.md https://cs.tvl.fyi/depot/-/blob/nix/readTree/README.md
- rapnie 3y agoThank you! I already bumped into the virus lounge, with their TVIX project [0] that I found quite interesting. [0] https://code.tvl.fyi/about/tvix https://code.tvl.fyi/about/tvix
- Cu3PO42 3y agoI really like this. In fact, I have an extremely similar home-grown abstraction. I might look into standardizing on this.