summary refs log tree commit diff
path: root/lib/trivial.nix
diff options
context:
space:
mode:
authorzimbatm <zimbatm@zimbatm.com>2018-11-15 21:51:29 +0100
committerzimbatm <zimbatm@zimbatm.com>2018-11-15 21:56:17 +0100
commit2a838cb6d7421a38d008c935aa76650eefb80be0 (patch)
treea72e574e0596adcb76da4505b8a3f620d51c0cce /lib/trivial.nix
parentf482ff9deb5a7da584ac3888d678d1ff9bd46598 (diff)
downloadnixpkgs-2a838cb6d7421a38d008c935aa76650eefb80be0.tar
nixpkgs-2a838cb6d7421a38d008c935aa76650eefb80be0.tar.gz
nixpkgs-2a838cb6d7421a38d008c935aa76650eefb80be0.tar.bz2
nixpkgs-2a838cb6d7421a38d008c935aa76650eefb80be0.tar.lz
nixpkgs-2a838cb6d7421a38d008c935aa76650eefb80be0.tar.xz
nixpkgs-2a838cb6d7421a38d008c935aa76650eefb80be0.tar.zst
nixpkgs-2a838cb6d7421a38d008c935aa76650eefb80be0.zip
group the release info
this makes the codename globally accessible in the repo. The release is
not only for NixOS anymore.
Diffstat (limited to 'lib/trivial.nix')
-rw-r--r--lib/trivial.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/trivial.nix b/lib/trivial.nix
index e31cf73d27c..17489311236 100644
--- a/lib/trivial.nix
+++ b/lib/trivial.nix
@@ -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;