!djTaTBQyWEPRQxrPTb:nixos.org

Nixpkgs Architecture Team

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

Load older messages


SenderMessageTime
15 Mar 2024
@infinisil:matrix.orginfinisil 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
@ryantm:matrix.orgryantmI'd like to make it be a normal nixpkgs pkg.21:32:46
@ryantm:matrix.orgryantmI've committed terrible crimes and got it to pass checks https://github.com/NixOS/nixpkgs/pull/108063/files#diff-ab5748dc9567516fefba8344056b51ec1866adeace380f46e58a7af3d619ea22R4019621:44:59
@ryantm:matrix.orgryantm infinisil: What does "alias it from all-packages.nix" mean? 22:59:01
@infinisil:matrix.orginfinisil 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
@infinisil:matrix.orginfinisilSome restructuring might be in order to make that a possibility23:09:33
@infinisil:matrix.orginfinisil 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
@infinisil:matrix.orginfinisil(and probably some other ways)23:10:37
@ryantm:matrix.orgryantmI 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
@ryantm:matrix.orgryantm Maybe I can trick them by doing something like thing = callPackage ./path/to/package/ { inherit stdenvNoCC;} 23:12:01
@infinisil:matrix.orginfinisilWouldn't work, it's too smart for that :P23:12:54
@infinisil:matrix.orginfinisil ryantm: How about not making it a top-level package? I can see nix-build -A nixpkgsManual.<something> 23:13:40
@ryantm:matrix.orgryantmThat's a good idea.23:14:15
@infinisil:matrix.orginfinisil You can cheat the check by doing inherit ({ foo = callPackage ...; }) foo;, but that's not meant for this kind of thing 23:14:18
@infinisil:matrix.orginfinisil ryantm: Why do you need it to be exposed via the top-level attributes anyways? 23:15:32
@ryantm:matrix.orgryantm infinisil: I just though it'd be nice to run nix run .#nixpkgs-manual-mmdoc-watch probably not required. 23:16:55
@infinisil:matrix.orginfinisil ryantm: I feel like exposing a separate attribute in flake.nix would be better 23:18:30
@infinisil:matrix.orginfinisil ryantm: Like, define it in doc/default.nix primarily, but then do nixpkgsManual = import ./doc or so in flake.nix 23:19:04
@infinisil:matrix.orginfinisil(also camelCase is the convention in Nixpkgs, not snake_case)23:19:52
@infinisil:matrix.orginfinisilBut I also get the argument for wanting the same interface between flakes and non-flakes, which wouldn't work with this..23:21:55
@infinisil:matrix.orginfinisil * But I also get the argument o wanting the same interface between flakes and non-flakes, which wouldn't work with this..23:22:01
@infinisil:matrix.orginfinisil * But I also get the argument of wanting the same interface between flakes and non-flakes, which wouldn't work with this..23:22:04
@infinisil:matrix.orginfinisilNixpkgs is due for a refactoring and API change to make sure we have a single entry-point that exposes everything..23:22:58
16 Mar 2024
@grahamc:nixos.org@grahamc:nixos.org joined the room.00:04:38
@willbush:matrix.orgwillbush joined the room.00:21:10
@infinisil:matrix.orginfinisil

willbush: context for others Me and Philip Taron (UTC-8) (who's been reviewing a lot of my nixpkgs-check-by-name PRs) were planning to do a brainstorming session on improving the error collection in the tool, main goal to make NixpkgsProblem not be such a mess.

We haven't scheduled anything yet, would you be interested in joining too? :D

03:38:17
@infinisil:matrix.orginfinisil *

willbush: (context for others) Me and Philip Taron (UTC-8) (who's been reviewing a lot of my nixpkgs-check-by-name PRs) were planning to do a brainstorming session on improving the error collection in the tool, main goal to make NixpkgsProblem not be such a mess.

We haven't scheduled anything yet, would you be interested in joining too? :D

03:38:27
@willbush:matrix.orgwillbushSure!04:09:20
@infinisil:matrix.orginfinisil willbush: Oh can you join my first office hour on Monday perhaps? I believe Philip Taron (UTC-8) is also planning to join: https://discourse.nixos.org/t/community-calendar/18589/120 04:13:02
@imincik:matrix.org@imincik:matrix.org joined the room.08:41:50

Show newer messages


Back to Room ListRoom Version: 9