!djTaTBQyWEPRQxrPTb:nixos.org

Nixpkgs Architecture Team

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

You have reached the beginning of time (for this room).


SenderMessageTime
5 Sep 2023
@infinisil:matrix.orginfinisil *
gh pr list --search 'updated:>=2023-09-05' --state all --limit 999 --json url,files,title,state \
  | jq -r '.[] | select(.files | any(.path | startswith("pkgs/by-name"))) | "\(.url) (\(.state)): \(.title)"'
19:16:31
@infinisil:matrix.orginfinisilFirst new package! https://github.com/NixOS/nixpkgs/tree/master/pkgs/by-name19:17:23
@infinisil:matrix.orginfinisil * First new package! https://github.com/NixOS/nixpkgs/tree/master/pkgs/by-name/wa/wayland-logout19:17:36
@figsoda:matrix.orgfigsodaI will work on nix-init to support this, hopefully we should see a lot more in the near future19:18:49
@k900:0upti.meK900wa19:19:22
@k900:0upti.meK900Masthead-Waluigi.17345b15.9afde10b.png
Download Masthead-Waluigi.17345b15.9afde10b.png
19:19:34
@figsoda:matrix.orgfigsodaimage.png
Download image.png
19:20:17
@infinisil:matrix.orginfinisil
In reply to @figsoda:matrix.org
I will work on nix-init to support this, hopefully we should see a lot more in the near future
Ah neat! Note that the folder structure should be treated as internal to Nixpkgs, there is no API guarantee that it will not change over time. Considering that, it would be great if we could figure out a proper API that Nixpkgs could expose for this. Maybe it should be as simple as pkgs.preferredDirectoryForPackage "foo" = ./pkgs/by-name/fo/foo
19:22:47
@piegames:matrix.org@piegames:matrix.orgAlso note that there will hopefully be multiple by-names in the future19:23:22
@figsoda:matrix.orgfigsodamy plan is to keep the latest stable release of nix-init compatible with nixpkgs master19:24:54
@figsoda:matrix.orgfigsodaand this should all be easy to opt out so the worst case isn't that bad19:25:36
@infinisil:matrix.orginfinisil Well such an API will happen at some point anyways. It has many more applications. E.g. nix edit could also use it to figure out the file to edit without even having to evaluate anything (meaning it works even if there's a syntax error!) 19:26:52
@infinisil:matrix.orginfinisilAnd position information for packages in general can be known without much evaluation19:27:12
@infinisil:matrix.orginfinisilBut yeah so just be aware that it's all internal to Nixpkgs for now. Any tools built on top of a hardcoded pkgs/by-name will eventually break.19:28:24
@infinisil:matrix.orginfinisil(maybe)19:37:36
6 Sep 2023
@roberthensing:matrix.orgRobert Hensing (roberth)
In reply to @piegames:matrix.org
Also note that there will hopefully be multiple by-names in the future
Or we can upgrade it to top level so that everything about a package can be kept together, which is a nice DX upgrade. ie not just a package but also any modules, documentation, tests, etc.
11:23:55
@piegames:matrix.org@piegames:matrix.org
In reply to @roberthensing:matrix.org
Or we can upgrade it to top level so that everything about a package can be kept together, which is a nice DX upgrade. ie not just a package but also any modules, documentation, tests, etc.
I was thinking more about package sets in their own name spaces
11:29:28
@j-k:matrix.orgj-k

is there any CI that ensures packages are in the right folders? e.g. he/bob/package.nix

also does the pname matter at all?

11:56:15
@j-k:matrix.orgj-k *

is there any CI that ensures packages are in the right folders? e.g. he/bob/package.nix vs bo/bob/package.nix

also does the pname matter at all?

11:56:29
@piegames:matrix.org@piegames:matrix.orgYes and no11:56:58
@roberthensing:matrix.orgRobert Hensing (roberth)
In reply to @piegames:matrix.org
I was thinking more about package sets in their own name spaces
makes sense for say pythonPackages, though I'd omit the actual by-name from the path. Maybe add it to https://github.com/nixpkgs-architecture/issues/issues/21?
12:00:06

Show newer messages


Back to Room ListRoom Version: 9