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-architecture | 53 Servers |
| Sender | Message | Time |
|---|---|---|
| 14 Mar 2024 | ||
| 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 | |
ryantm: I'd say, don't put it in all-packages.nix, how about doc/default.nix instead, then optionally alias it from all-packages.nix | 19:24:40 | |
| I'd like to make it be a normal nixpkgs pkg. | 21:32:46 | |
| I've committed terrible crimes and got it to pass checks https://github.com/NixOS/nixpkgs/pull/108063/files#diff-ab5748dc9567516fefba8344056b51ec1866adeace380f46e58a7af3d619ea22R40196 | 21:44:59 | |
| infinisil: What does "alias it from all-packages.nix" mean? | 22:59:01 | |
ryantm: Hmm so nixpkgs is a mess. I was hoping that the doc/default.nix attributes were somehow accessible in the top-level attribute set, but they're not | 23:09:21 | |
| Some restructuring might be in order to make that a possibility | 23:09:33 | |
At least currently the manual can be built using nix-build doc or nix-build pkgs/top-level/release.nix -A manual | 23:10:30 | |
| (and probably some other ways) | 23:10:37 | |
| I kind of think it would be good to add some magic comments that bypass nix by-path checks. If these magic comments are unique enough, we can grep for them later. | 23:10:50 | |
Maybe I can trick them by doing something like thing = callPackage ./path/to/package/ { inherit stdenvNoCC;} | 23:12:01 | |
| Wouldn't work, it's too smart for that :P | 23:12:54 | |