diff options
-rw-r--r-- | release.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/release.nix b/release.nix index 530600ea4d8b..0d3cd8be9875 100644 --- a/release.nix +++ b/release.nix @@ -1,5 +1,5 @@ { nixpkgs ? <nixpkgs>, nixos ? <nixos> -, nix ? { outPath = ./.; rev = 1234; } +, nix ? { outPath = ./.; revCount = 1234; shortRev = "abcdef"; } , officialRelease ? false }: @@ -14,6 +14,7 @@ let releaseTools.sourceTarball { name = "nix-tarball"; version = builtins.readFile ./version; + versionSuffix = if officialRelease then "" else "pre${toString nix.revCount}_${nix.shortRev}"; src = nix; inherit officialRelease; |