It seems like there isn't a tracking issue about this long-term effort yet (e.g. to mention in commit messages and to make it sprintable).
Nixpkgs moved to an explicit versioning scheme, with the plan to change all packages like so:
-name = "mypackage-1.2.3";
+pname = "mypackage";
+version = "1.2.3";
See the sprint checkbox list for the remaining packages: #103997 (comment)
This obviates meta.version and meta.tag; they should be removed (as discussed in #12156).
Tangentially related: Where to put unstable versions / package names (see #68518).
Details on what's right and what isn't
Note that the following pattern is not good because it still uses name:
let
pname = "mypackage";
version = "1.2.3";
in
mkDerivation {
name = "${pname}-${version}";
}
In the new approach, pname and version have to be given directly to mkDerivation.
You can use mkDerivation rec to be able to re-use e.g. version in src or other fields:
mkDerivation rec {
pname = "mypackage";
version = "1.2.3";
src = {
... expression using `version` variable here ...
};
}
Automation
You can link big treewide efforts/PRs here (tick merged ones):
Tasks
It seems like there isn't a tracking issue about this long-term effort yet (e.g. to mention in commit messages and to make it sprintable).
Nixpkgs moved to an explicit versioning scheme, with the plan to change all packages like so:
See the sprint checkbox list for the remaining packages: #103997 (comment)
This obviates
meta.versionandmeta.tag; they should be removed (as discussed in #12156).Tangentially related: Where to put
unstableversions / package names (see #68518).Details on what's right and what isn't
Note that the following pattern is not good because it still uses
name:In the new approach,
pnameandversionhave to be given directly tomkDerivation.You can use
mkDerivation recto be able to re-use e.g.versioninsrcor other fields:Automation
You can link big treewide efforts/PRs here (tick merged ones):
Tasks
meta.tagshould indeed be removed as wellupdate-walker.shscript? Ask @7c6f434c: meta.updateWalker: remove because it is not used #151363updateWalkerbecause it's the last reference toupdate-walker.sh: meta.updateWalker: remove because it is not used #151363