Nix Hackers | 884 Members | |
| For people hacking on the Nix package manager itself | 189 Servers |
| Sender | Message | Time |
|---|---|---|
| 31 Mar 2025 | ||
| the marginial cost of the split package feels very low to me | 21:18:09 | |
| in which case we would be free to break the old way in 25.11 | 21:18:14 | |
| because we can simply test all the things you mentioned right away | 21:18:20 | |
| there aren't really latant issues | 21:18:24 | |
| you mean a patching mechanism that works with split and unsplit packages? | 21:19:26 | |
| I am not sure, probably not | 21:19:31 | |
| how people consume our packages is a tragic unknown. though of course we always have to draw a line somewhere but look at how breaking changes to lib are handled for how our caution should increase as the criticality does | 21:19:36 | |
| and again if we were keeping packaging constant but bumping version or vice versa (not possible in this case, I know), there would still be concerns but of lower magnitude | 21:20:18 | |
| I'm thinking about it | 21:28:38 | |
| (but I also walked out to eat) | 21:34:03 | |
I wonder what it would look like if every single nixpkgs package had their own unique helper to apply patches and change depends :) | 21:35:47 | |
| it's a package set | 21:49:10 | |
| actually I think it would be great, because we'd settle on a standard interface for doing just those things and nothing else, and we'll finally have an interface boundary | 21:49:57 | |
| overriding arbitrary internals would be frowned upon, because that is not a testable or maintainable interface. Instead, users would contribute functions, tests, and documentation to support their use cases instead of trying to work around the unpredictable internal changes in packages. It'd be glorious | 21:53:02 | |
In reply to @elvishjerricco:matrix.orgnix-eval-jobs with nix 2.X and 2.Y the entirety of nixpkgs and then compare the outPath? | 21:59:36 | |
In reply to @trofi:matrix.orgapplyPatches does this in some sense, but with IFD... | 22:00:14 | |
| hopefully we can eventually get to the point where IFD isn't a problem | 22:00:37 | |
| as Tvix/Snix shows us, it is indeed possible | 22:01:01 | |
In reply to @roberthensing:matrix.org i kinda disagree with this portrayal of the current state of things, there was a naturally developed API for overriding packages which is explained in Nix pills and stuff, overrideAttrs has some standard expectations: you can override patches, etc, etc. this all solidified quite well without many efforts thanks to automatic injection of these attributes and pushing packagers to use a set of mostly standard APIs, of course, some packagers went their own way, e.g. python3Packages and the suffering caused by that is reported constantly in the well known issue, I don't think a day passed with people saying "I'm glad that python3Packages has its own API for override and its own contract" that no one knows having an API to inject your own | 22:03:38 | |
the interface boundary kinda exist today, it just is not super well made for package sets indeed, but there's already a bunch of this that already works and arguably the Nix implementation is even more complicated than a trivial package set and the current situation with nixForLinking does not really address the "let me choose my Nix version while importing nixpkgs once" | 22:04:56 | |
| yeah I was replying to trofi's scenario :) | 22:07:06 | |
| not the current state of things | 22:07:16 | |
| heh :) | 22:07:35 | |
| i may read too much into what trofi said | 22:07:42 | |
| but i thought it would describe a smaller or more-difficult-to-maintain nixpkgs ;P | 22:07:54 | |
| with the new packaging we've tried to stick as much to established APIs like plain mkDerivation without added fixed-points on top | 22:10:07 | |
I had to throw away a bunch of .nix code that added env.NIX_CFLAGS_COMPILE =" -D_GLIBCXX_DEBUG"; to nix package because I have no idea how to do it for nix-2.26. For other package sets in nixpkgs my default action of to stick a patch into local nixpkgs checkout because I have no idea how they work from a set to a set. | 22:10:17 | |
| I think the packaging layers we've developed for mkDerivation could be useful outside Nix for other meson-based projects | 22:10:46 | |
| as I kind of have joint authority over the Nixpkgs packaging of Lix, I read it but I'm not super convinced personally | 22:11:27 | |
| I feel like it violates too the principle of least astonishment for packagers and consumers | 22:11:37 | |