Nixpkgs Architecture Team | 220 Members | |
| https://github.com/nixpkgs-architecture, weekly public meetings on Wednesday 15:00-16:00 UTC at https://meet.jit.si/nixpkgs-architecture | 52 Servers |
| Sender | Message | Time |
|---|---|---|
| 14 Mar 2024 | ||
| relevant comment and reply: https://github.com/NixOS/nixpkgs/pull/293835#pullrequestreview-1929937012 | 19:38:37 | |
This was the first PR I made against lib, so the historical reason is that I was trying to do the work by hand and I didn't have the script I later wrote to gather and use the names automatically. | 19:39:05 | |
| Haha I see | 19:39:35 | |
I've formed a small bias towards the shortest path. So if a name is re-exported from lib, I'll use that. | 19:39:58 | |
* Since I opened the PR, I've formed a small bias towards the shortest path. So if a name is re-exported from lib, I'll use that. | 19:40:11 | |
| Philip Taron (UTC-8): Sounds good to me | 19:42:32 | |
I still have Robert's feedback (and now yours) to go and digest in the lib/trivial.nix PR. | 19:42:47 | |
Note that that PR, unlike the rest, isn't about with removal -- it was mostly formed because of my trying to make sense of how lib is structured, so getting on the same page with you and robert about it is key for my future contributions in the area. | 19:43:50 | |
| But I can keep gathering that knowledge about it on a low simmer instead of a strong boil; digesting approaches takes time. | 19:45:20 | |
| Haha great way to word it | 19:46:35 | |
| I do have a couple of conclusions after reading through most of
| 19:54:22 | |
| 19:58:30 | |
There's no and keyword? There's an and token and a production that uses it... | 19:59:57 | |
Philip Taron (UTC-8): That's && :P | 20:00:28 | |
In reply to @infinisil:matrix.org🤦 | 20:00:48 | |
| Philip Taron (UTC-8): https://github.com/NixOS/nix/blob/master/src/libexpr/lexer.l#L124 | 20:00:49 | |
| * Philip Taron (UTC-8): https://github.com/NixOS/nix/blob/c152c2767a262b772c912287e1c2d85173b4781c/src/libexpr/lexer.l#L124 | 20:01:02 | |
| I, uh, should have read the lexer on the matter. Oops. | 20:01:58 | |
| * I do have a couple of conclusions after reading through most of
| 20:03:28 | |
| * I do have a couple of conclusions after reading through most of
| 20:03:42 | |
btw what's the recommended approach to keeping the inherit (lib.X) things up-to-date when actively writing code?Doing that manually (and remembering whether it's called strings, string or str for instance) feels pretty cumbersome which is why I'm still falling back to with lib; quite often. | 20:39:16 | |
In reply to @philiptaron:matrix.org @ma27: figuring out which submodule to pull from -- and keeping them straight -- is one reason I end up favoring
| 20:48:25 | |
In reply to @philiptaron:matrix.org* ma27: figuring out which submodule to pull from -- and keeping them straight -- is one reason I end up favoring
| 20:48:41 | |
On lib.or: as far as I can tell, it's used in three files (lib/options.nix, pkgs/build-support/writers/data.nix, and pkgs/build-support/writers/scripts.nix) and for the uses in writers it could be trivially replaced with ||. | 21:06:46 | |
In reply to @philiptaron:matrix.orghttps://github.com/NixOS/nixpkgs/pull/295982 | 21:14:29 | |
| 15 Mar 2024 | ||
| 12:05:44 | ||
| infinisil: I'm running into an issue where I want to add new top-level attributes for my mmdoc rendering of the nixpkgs manual, and it depends on nixpkgs/doc folder, so when I put it in pkgs/by-name/ it complains about me using ../../ etc to reference the doc folder, and if I don't use by-name it also complains. Is there a way to skip the by-name checks one way or the other? Maybe I could fake inherit something in all-packages.nix to trick it, but that seems dirty. | 19:22:53 | |
| Moving the whole doc folder into pkgs/by-name feels wrong too :devil: | 19:23:46 | |
| ryantm: Ah that's an interesting case.. | 19:23:50 | |
| 🤔 | 19:23:53 | |