Nixpkgs Architecture Team | 233 Members | |
| https://github.com/nixpkgs-architecture, weekly public meetings on Wednesday 15:00-16:00 UTC at https://meet.jit.si/nixpkgs-architecture | 53 Servers |
| Sender | Message | Time |
|---|---|---|
| 17 Feb 2023 | ||
| 20:32:15 | ||
| 20:33:27 | ||
| 19 Feb 2023 | ||
| would it make sense to make a option type that would allow attrset of derivations or list of derivations for the packages options
imho this would feel more natural than using the dotted notion or attrValues, while avoiding the pitfall of the with statement | 12:19:06 | |
Ronny: An option type for that already exists, attrsOf package. The bigger issue is backwards compatibility and maybe a way to still use lists but have them be coerced to an attribute set | 13:22:36 | |
| But I 100% agree that we should be able to specify packages using attribute sets | 13:23:34 | |
In reply to @infinisil:matrix.org i specifically meant a option type that will allow both lists and attrsets and coerce them into lists, for merge my understanding is that same name packages in different sets are possible when they dont actually conflict | 13:25:21 | |
| Ronny: Coercing to a list won't have any of the benefits of attribute sets though | 13:26:32 | |
| One of the main ones being the ability to remove a package | 13:26:57 | |
| removal is currently not possible anyway as far as i understood imho a good starting point is to etablish using attr sets early and as default so people can migrate to using the better syntax and once the majority o usages are changed its time to enable extra features nontheless it seems potentially terrifying if other modules are allowed to remove packages of the sets | 13:30:02 | |
| Ronny: If we can coerce from lists to attribute sets there will be no need for attribute set syntax though, while still getting the benetifs of attribute sets. And the implementation can indeed work by using either the package name as an attribute name, or using the attribute path to the package (a bit harder) | 13:40:34 | |
In reply to @ronnypfannschmidt:matrix.orgThis is already the case though, all modules can do anything to the system id they want to, they all have root access so to speak | 13:41:28 | |
In reply to @ronnypfannschmidt:matrix.org* Regardjng allowing modules tk remove options: This is already the case though, all modules can do anything to the system id they want to, they all have root access so to speak | 13:42:22 | |
| (Damn, made a lot of typos on my phone in the train, but the matrix client somehow doesn't let me edit multiple times) | 13:44:24 | |
| 20 Feb 2023 | ||
In reply to @infinisil:matrix.orgImports into submodules don't, unless they're facilitated to do such things by a module that interacts with the submodule (usually the module that declares the submodule) | 11:25:41 | |
| @room: The next meeting will take place in ~10 minutes - meeting link - live stream - meeting notes | 15:23:00 | |
| tomberek: growpotkin ( Alex Ameen ) Pairing time :) | 16:47:16 | |
| nice performance improvement and cleanup: https://github.com/NixOS/nixpkgs/pull/217243 | 23:09:28 | |
| 21 Feb 2023 | ||
| Two things:
| 00:09:35 | |
| Also I currently don't see the usecase why we would want to set __cleanAttrs on any package. It has the UX of moving everything into a let in and breaking all extensibility. | 00:13:46 | |
In reply to @sandro:supersandro.deWhy moving everything to let in? | 04:32:28 | |
| rec and finalAttrs should works as they do now | 04:33:43 | |
| It's possible to have finalAttrs values in passthru right? | 04:33:56 | |
| I think it'll be useful to have to explicitly declare all attrs that should be available outside of the package | 04:35:59 | |
| * I think it'll be useful to have to explicitly declare all public attrs | 04:36:37 | |
| I was comparing it to having variables in let ins. | 11:51:01 | |
| Packages should expose all attrs written in the file otherwise overlays will become unnecessarily hard and right now I am completely against using it in any normal package. | 11:52:26 | |
In reply to @sandro:supersandro.deit won't affect overlays https://github.com/NixOS/nixpkgs/pull/217243#issuecomment-1438756128 | 17:29:00 | |
In reply to @sandro:supersandro.de* it won't affect override overlays https://github.com/NixOS/nixpkgs/pull/217243#issuecomment-1438756128 | 17:29:11 | |
| If you are using overrideAttrs but sometimes you are constructing a new package by copying pname, version, src and patches from another package. Not exposing them by default just creates busy work and friction for downstream users. | 18:19:09 | |
| 23 Feb 2023 | ||
| 17:54:27 | ||