about summary refs log tree commit diff
path: root/release.nix
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2012-02-08T11·31+0100
committerEelco Dolstra <e.dolstra@tudelft.nl>2012-02-08T11·31+0100
commitfb95455c02c8c48d98a94fde62d666ab13b53edf (patch)
tree4cb6fa3efd9eee9cdea96722f5e2b22dae42c35d /release.nix
parent67444f5e54163702e6c5f0dd7d85c1158291fe99 (diff)
Set the versionSuffix to include the Git shortrev
Diffstat (limited to 'release.nix')
-rw-r--r--release.nix3
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;