!djTaTBQyWEPRQxrPTb:nixos.org

Nixpkgs Architecture Team

229 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
6 Sep 2023
@artturin:matrix.orgArtturin1285 vs 495 damn18:29:13
@infinisil:matrix.orginfinisilNot sure why we need that convention fwiw18:29:42
@infinisil:matrix.orginfinisilI guess it's more consistent, easier to find it, less chance of making a mistake in the name18:30:15
@infinisil:matrix.orginfinisilFair enough18:30:18
@k900:0upti.meK900What convention?18:30:20
@infinisil:matrix.orginfinisil
In reply to @infinisil:matrix.org

The pname and the version attribute must not contain uppercase letters — e.g., "mplayer" instead of "MPlayer"`.

Huh TIL, from https://github.com/NixOS/nixpkgs/tree/master/pkgs#package-naming

K900 ⚡️:
18:30:58
@k900:0upti.meK900Oh yeah I'm not sure about pname18:31:20
@k900:0upti.meK900But attribute names should really be lower case18:31:24
@infinisil:matrix.orginfinisilMaybe we should have pname match the attribute name too though18:32:05
@k900:0upti.meK900I don't really care on that one18:35:53
@davidak:matrix.orgdavidakthat makes it much less confusing18:56:14
7 Sep 2023
@hsngrmpf:matrix.orgDavHau
In reply to @infinisil:matrix.org
Maybe we should have pname match the attribute name too though
Yes please. Establishing that pattern is also important for downstream projects. Associating the log of a failed build with the correct package file can often be a nightmare, especially for team members with little nix experience.
20:55:43
@hsngrmpf:matrix.orgDavHauIts also important if we want to better integrate package updates. We can attach an update script to a package via passthru, but that script needs to know the location of the package definition. Hardcoding the location breaks portability. A mechanism to compute the package location from the attribute path is needed.23:10:24
@hsngrmpf:matrix.orgDavHau* Its also important if we want to better integrate package updates. We can attach an update script to a package via passthru, but that script needs to know the location of the package definition. Hardcoding the location breaks portability. A mechanism to compute the package location from the package name is benefitial.23:12:44
8 Sep 2023
@piegames:matrix.org@piegames:matrix.orgI think currently update scripts are executed in the package's folder, and finding the Nixpkgs root can be done with a simple git command06:04:25

Show newer messages


Back to Room ListRoom Version: 9