summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorzimbatm <zimbatm@zimbatm.com>2018-10-11 12:15:25 +0200
committerzimbatm <zimbatm@zimbatm.com>2018-10-16 11:11:28 +0200
commitb7a07313cc72219964b93e47c36fffeed314a351 (patch)
tree9f27850babd0eff1f6484ca06f20151fab3e8474 /lib
parentd2b5518e1e81f9a053d1491b354daf23f68f7535 (diff)
move the codeName to /.codeName
Make the codeName globally accessible in the repo. The release is not only for NixOS anymore.
Diffstat (limited to 'lib')
-rw-r--r--lib/trivial.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/trivial.nix b/lib/trivial.nix
index 938df6ced476..811c298d8620 100644
--- a/lib/trivial.nix
+++ b/lib/trivial.nix
@@ -98,6 +98,9 @@ rec {
# The current nixpkgs version number as string.
release = lib.strings.fileContents ../.version;
+ # Note: the first letter is bumped on every release. It's an animal.
+ codeName = lib.strings.fileContents ../.codeName;
+
# The current nixpkgs version suffix as string.
versionSuffix =
let suffixFile = ../.version-suffix;