summary refs log tree commit diff
path: root/release.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-01-19 15:57:10 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-01-19 15:57:10 +0100
commitc30b65df4b3763a23616d59ffea6c8674b9ab9b3 (patch)
tree7ebc330abb8371d59df542ffc53c153aa9d1f894 /release.nix
parente201da376e510ed96b3b40ac091423a1ea5b5dd4 (diff)
downloadnixpkgs-c30b65df4b3763a23616d59ffea6c8674b9ab9b3.tar
nixpkgs-c30b65df4b3763a23616d59ffea6c8674b9ab9b3.tar.gz
nixpkgs-c30b65df4b3763a23616d59ffea6c8674b9ab9b3.tar.bz2
nixpkgs-c30b65df4b3763a23616d59ffea6c8674b9ab9b3.tar.lz
nixpkgs-c30b65df4b3763a23616d59ffea6c8674b9ab9b3.tar.xz
nixpkgs-c30b65df4b3763a23616d59ffea6c8674b9ab9b3.tar.zst
nixpkgs-c30b65df4b3763a23616d59ffea6c8674b9ab9b3.zip
Set the versionSuffix on tarballs/channel properly
Diffstat (limited to 'release.nix')
-rw-r--r--release.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/release.nix b/release.nix
index b32ce233ec0..bd740af1c42 100644
--- a/release.nix
+++ b/release.nix
@@ -86,7 +86,8 @@ let
 
         src = nixosSrc;
 
-        inherit officialRelease version versionSuffix;
+        inherit officialRelease version;
+        versionSuffix = lib.optionalString (!officialRelease) versionSuffix;
 
         distPhase = ''
           echo -n $VERSION_SUFFIX > .version-suffix
@@ -111,7 +112,8 @@ let
 
         src = nixosSrc;
 
-        inherit officialRelease version versionSuffix;
+        inherit officialRelease version;
+        versionSuffix = lib.optionalString (!officialRelease) versionSuffix;
 
         buildInputs = [ nixUnstable ];