@@ -58,12 +58,14 @@ rec {
5858
5959 inherit (lib.strings) fileContents;
6060
61− version = fileContents ../.version;
62− suffix = let suffixFile = ../.version-suffix; in
61+ release = fileContents ../.version;
62+ versionSuffix = let suffixFile = ../.version-suffix; in
6363 if pathExists suffixFile then fileContents suffixFile else "pre-git";
6464
6565 # Return the Nixpkgs version number.
66− nixpkgsVersion = version + suffix;
66+ version = release + versionSuffix;
67+
68+ nixpkgsVersion = builtins.trace "`lib.nixpkgsVersion` is deprecated, use `lib.version` instead!" version;
6769
6870 # Whether we're being called by nix-shell.
6971 inNixShell = builtins.getEnv "IN_NIX_SHELL" != "";