!djTaTBQyWEPRQxrPTb:nixos.org

Nixpkgs Architecture

222 Members
Discussions about Nixpkgs' architecture - https://github.com/NixOS/nixpkgs/labels/architecture46 Servers

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


SenderMessageTime
28 Jan 2024
@ncfavier:matrix.orgncfavier changed their profile picture.14:04:01
@jade_:matrix.org@jade_:matrix.org joined the room.23:53:24
@jade_:matrix.org@jade_:matrix.org

something I've found often very difficult to work with while doing nixpkgs work that i was reminded of in a recent review by infinisil and Robert Hensing (roberth) is that stuff that's not lib and is in fact packaging related is all slammed into all-packages.nix in the flat namespace with a bunch of packages that are not special

I'm wondering if stuff like fetchers, recurseIntoAttrs, newScope, pkgs.path and so on should get a new secondary namespace to make them easier to find out about.

also as an example, stuff like nix-update isn't obvious to new contributors who don't have long standing dms with raito to be told about them :p

23:57:26
29 Jan 2024
@infinisil:matrix.orginfinisil jade_ Yeah fully agreed! I think we should totally have separate namespaces for the different "type" of values 00:05:19
@infinisil:matrix.orginfinisil Kind of like a very primitive type system haha 00:05:32
@jade_:matrix.org@jade_:matrix.orgmaybe the way to think about it also is how an ideal reference documentation would look00:09:33
@jade_:matrix.org@jade_:matrix.organd then organize based on how you'd think about that00:09:44
@jade_:matrix.org@jade_:matrix.orglike fetchers, scopes, misc, idk00:10:32
@infinisil:matrix.orginfinisil💯00:10:50
@infinisil:matrix.orginfinisil pkgs/by-name is one small step in that direction, because that's a place where only packages are allowed, putting e.g. functions in there isn't allowed by CI 00:11:26
@jade_:matrix.org@jade_:matrix.orgyes good00:11:36
@jade_:matrix.org@jade_:matrix.orgoh also i found a use for the isFlake feature even if my pkgs path thing gets canned: improving the errors for stuff where we ask for env-vars for broken, insecure, or proprietary packages00:24:04
@k900:0upti.meK900 pkgs/by-name/c-/c-periphery/package.nix 07:53:15
@k900:0upti.meK900That's a funny edge case07:53:17
@lehmanator:tchncs.deSam Lehman joined the room.11:01:00
@lehmanator:tchncs.deSam Lehman set a profile picture.11:06:02
@flandweber:envs.net@flandweber:envs.net joined the room.15:02:12
@flandweber:envs.net@flandweber:envs.net changed their display name from flandweber to Finn Landweber.18:20:07

Show newer messages


Back to Room ListRoom Version: 9