diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2012-02-08T11·31+0100 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2012-02-08T11·31+0100 |
commit | fb95455c02c8c48d98a94fde62d666ab13b53edf (patch) | |
tree | 4cb6fa3efd9eee9cdea96722f5e2b22dae42c35d | |
parent | 67444f5e54163702e6c5f0dd7d85c1158291fe99 (diff) |
Set the versionSuffix to include the Git shortrev
-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; |