!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

221 Members
72 Servers

Load older messages


SenderMessageTime
20 Apr 2025
@rosscomputerguy:matrix.orgTristan RossIf anyone else wants to look at this before it's merged, please do. https://github.com/NixOS/nixpkgs/pull/39479704:23:42
@rosscomputerguy:matrix.orgTristan Ross I'm going to work on what this is: https://github.com/NixOS/nixpkgs/pull/375435#discussion_r1927770569
We'll have a new nixpkgs config option called allowVariants and we'll have pkgs/top-level/variants.nix. This enables the nixpkgs variants like pkgsLLVM, pkgsMusl, etc.
15:12:20
@rosscomputerguy:matrix.orgTristan Rosshttps://github.com/NixOS/nixpkgs/pull/400351 we have the variants in this pr15:27:58
@emilazy:matrix.orgemilyhow does that interact with https://github.com/NixOS/nixpkgs/pull/380342?15:29:27
@emilazy:matrix.orgemilyah, it's just making them alias-ish15:29:52
@rosscomputerguy:matrix.orgTristan RossYeah, it's just alias-like15:30:01
@emilazy:matrix.orgemily wouldn't it be better to just put them behind config.allowAliases like other convenience things? 15:30:04
@rosscomputerguy:matrix.orgTristan RossWell, they're kinda different imo.15:30:21
@rosscomputerguy:matrix.orgTristan Ross An alias is something more like llvmPackages_latest being a shorthand for the latest LLVM version, it's an alias lol 15:30:52
@rosscomputerguy:matrix.orgTristan RossBut these are variants of nixpkgs15:31:01
@rosscomputerguy:matrix.orgTristan RossSome of these might be needed for some things to function, I want to move more from stage into variants but I didn't want to break anything.15:32:18
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)I had an issue with allowAliases15:33:12
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)Can we tell users that "the variable is part of aliases so it's not allowed to use with config.allowAliases = false" instead of "the variable doesn't exist"15:33:40
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)But it would probably be hard15:33:54
@rosscomputerguy:matrix.orgTristan RossI think we'd have to determine what is added in from aliases15:34:08
@rosscomputerguy:matrix.orgTristan RossBut it actually wouldn't be too impossible.15:34:15
@emilazy:matrix.orgemilyif we had an actually structured alias system, yeah15:34:17
@emilazy:matrix.orgemilybut we don't15:34:19
@emilazy:matrix.orgemilywe should, because we should warn for the deprecated kind of aliases15:34:29
@emilazy:matrix.orgemily aliases.nix is too much manual work and doesn't inform users of deprecations 15:34:45
@rosscomputerguy:matrix.orgTristan Ross Imo, we should have a deprecations.nix or removed.nix. Aliases is too broad. 15:35:18
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC)Yeah, but how do we handle this as a general case, and also for config.allowVariants15:35:24
@emilazy:matrix.orgemilyalso the date-based system is silly, since stuff gets merged later than it gets written15:35:24
@emilazy:matrix.orgemilyit should be based on releases instead15:35:27
@emilazy:matrix.orgemilysplitting out deprecations and preserved aliases makes sense. I think we don't need to separate out removed things15:36:15
@emilazy:matrix.orgemily it could just look like deprecatedPkg = { release = "25.05"; alias = newName; }; or deprecatedPkg = { release = "25.05"; }; for a removed thing 15:36:56
@emilazy:matrix.orgemilywhich would also make automating dropping stuff easier, there's currently a sorta gross script that doesn't handle all the cases15:37:08
@rosscomputerguy:matrix.orgTristan RossYeah, something which automagically handles deprecations is better15:37:33
@emilazy:matrix.orgemilyother scopes are where it gets awkward15:37:36
@emilazy:matrix.orgemily probably we'd want a thing to process these in lib so that it could be reused across the tree 15:37:45

Show newer messages


Back to Room ListRoom Version: 9