!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

220 Members
71 Servers

Load older messages


SenderMessageTime
20 Apr 2025
@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
@rosscomputerguy:matrix.orgTristan RossAlso, should have a suggestion in case something was removed.15:37:46
@emilazy:matrix.orgemilyright, you could have a field for an additional message15:37:59
@emilazy:matrix.orgemily like reason = "known vulnerabilities and unmaintained for years"; suggestion = …; 15:38:21
@emilazy:matrix.orgemily rather than manually writing throws and putting dates in comments 15:38:36
@rosscomputerguy:matrix.orgTristan RossI feel like some of the reasons could be defined so it didn't have to be copied and pasted.15:39:02
@emilazy:matrix.orgemily aliases.nix could contain stuff that's meant to stay (the "preserve" stuff) and deprecated.nix could contain stuff on the chopping block 15:39:04
@rosscomputerguy:matrix.orgTristan RossYeah, aliases could hold things like aliases to latest versions and a sort of legacy-compatibility15:39:36
@emilazy:matrix.orgemilyyeah there's mostly like 4 common reasons that get reused a lot :)15:39:42
@rosscomputerguy:matrix.orgTristan RossI can think unmaintained and vulnerable are the two most common15:40:08

Show newer messages


Back to Room ListRoom Version: 9