group the release info

this makes the codename globally accessible in the repo. The release is
not only for NixOS anymore.
This commit is contained in:
zimbatm
2018-11-15 21:56:17 +01:00
parent f482ff9deb
commit 2a838cb6d7
2 changed files with 8 additions and 3 deletions
+7
View File
@@ -129,6 +129,13 @@ rec {
/* Returns the current nixpkgs release number as string. */
release = lib.strings.fileContents ../.version;
/* Returns the current nixpkgs release code name.
On each release the first letter is bumped and a new animal is chosen
starting with that new letter.
*/
codeName = "Koi";
/* Returns the current nixpkgs version suffix as string. */
versionSuffix =
let suffixFile = ../.version-suffix;