| 17 Feb 2024 |
@qyriad:matrix.org | Oh this looks fantastic 👀 | 19:32:45 |
| 20 Feb 2024 |
| szlend joined the room. | 18:59:04 |
| szlend changed their display name from siyo to szlend. | 19:00:36 |
szlend | What's the purpose of the callPackage pattern really? Why does it expect a subset of packages as opposed to simply being the entire pkgs? Is it just so it can accept custom attributes? Some sort of performance reasons? | 20:21:38 |
szlend | I know it does splicing as well, but that wasn't there originally right | 20:22:49 |
K900 | It's a bit of a historical artifact | 20:23:12 |
K900 | It doesn't really need to exist | 20:23:44 |
Minijackson | right now, I think callPackage allows us to do overrides, and things like withFeature ? true | 20:26:22 |
szlend | I see yeah, I've always just found the pattern inconvenient. I'd basically have to name all the packages twice. If I no longer needed one, I would forget to remove it from the function arguments. When I started with nix I always assumed it was the way to track dependencies between packages, but that's obviously not how it works. | 20:27:01 |