!djTaTBQyWEPRQxrPTb:nixos.org

Nixpkgs Architecture Team

227 Members
https://github.com/nixpkgs-architecture, weekly public meetings on Wednesday 15:00-16:00 UTC at https://meet.jit.si/nixpkgs-architecture53 Servers

Load older messages


SenderMessageTime
14 Feb 2024
@qyriad:matrix.org@qyriad:matrix.org
In reply to @infinisil:matrix.org
It's just really hard to make sure that there are no regressions
This is unfortunately going to be true of any unification solution and all of the steps towards them :/
16:58:22
@infinisil:matrix.orginfinisilCan't deny that!16:58:35
@roberthensing:matrix.orgRobert Hensing (roberth)That's exactly why we need to burn it and start over with something manageable: a single fixpoint16:59:43
@roberthensing:matrix.orgRobert Hensing (roberth)Each layer of fixpoint is expected to interact with each other layer. If they don't, that's a bug17:00:35
@roberthensing:matrix.orgRobert Hensing (roberth)Let me refine that: if they completely don't, it's a missing feature that someone will want to use, in which case they'll write a partial implementation, which has bugs, because it doesn't interact with some of the other layers.17:01:31
@infinisil:matrix.orginfinisilAgreed. I don't want to stop others from trying to make small improvements, but personally I want to invest my energy into more future-proof designs17:05:55
@infinisil:matrix.orginfinisilThere needs to be a balance though, can't always jump into all the rabbit holes..17:06:35
@roberthensing:matrix.orgRobert Hensing (roberth)I don't think the incremental improvements/fixes are particularly easy, so I wouldn't necessarily recommend to make them, but I won't stop those either21:49:49
17 Feb 2024
@jade_:matrix.org@jade_:matrix.orgThis looks interesting, for downstream consumers! https://discourse.nixos.org/t/nix-pkgset-cross-compilation-aware-flake-package-sets/3991119:19:15
@qyriad:matrix.org@qyriad:matrix.orgOh this looks fantastic 👀19:32:45
20 Feb 2024
@szlend:matrix.orgszlend joined the room.18:59:04
@szlend:matrix.orgszlend changed their display name from siyo to szlend.19:00:36
@szlend:matrix.orgszlend 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:matrix.orgszlendI know it does splicing as well, but that wasn't there originally right20:22:49
@k900:0upti.meK900It's a bit of a historical artifact20:23:12
@k900:0upti.meK900It doesn't really need to exist20:23:44
@Minijackson:matrix.orgMinijackson right now, I think callPackage allows us to do overrides, and things like withFeature ? true 20:26:22
@szlend:matrix.orgszlendI 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
@k900:0upti.meK900 The overrides bit is actually mkOverrideable 20:27:08
@k900:0upti.meK900One thing callPackage does that you can't get with just mkOverrideable and ... patterns is checking for invalid arguments20:28:24
@k900:0upti.meK900 Because e.g. ({ stdenv, foo, bar, ... }: { ... }) { stednv = ...; } is not an error 20:28:54
@k900:0upti.meK900 (same with override) 20:29:13
@szlend:matrix.orgszlend Personally I wish it was something more like ({pkgs, pythonPackages, crane}: ...). Basically package sets as inputs. Not sure where the extra args would fit in, but I always found it weird to mix these 20:33:40
@k900:0upti.meK900That style would be harder to override20:34:04
@Minijackson:matrix.orgMinijackson there was a proposition by amjoseph to pass pkgsOnBuild, pkgsOnHost, and so on: https://github.com/NixOS/nixpkgs/issues/227327 20:35:04
@Minijackson:matrix.orgMinijacksonmakes cross-compilation much better, overriding much harder20:35:24
@k900:0upti.meK900Yeah that's basically just the no splicing proposal20:35:34
@szlend:matrix.orgszlendGetting rid of is literally my #1 nixpkgs wishlist20:35:42
@szlend:matrix.orgszlend * Getting rid of splicing is literally my #1 nixpkgs wishlist20:35:48
@k900:0upti.meK900I think we will be able to move into that direction a lot easier after the by-name migration20:36:08

Show newer messages


Back to Room ListRoom Version: 9