Author: eelco
Date: Mon Dec  5 14:16:30 2011
New Revision: 30742
URL: https://nixos.org/websvn/nix/?rev=30742&sc=1

Log:
* Allow versionSuffix to be overriden.

Modified:
   nixpkgs/trunk/pkgs/build-support/release/source-tarball.nix

Modified: nixpkgs/trunk/pkgs/build-support/release/source-tarball.nix
==============================================================================
--- nixpkgs/trunk/pkgs/build-support/release/source-tarball.nix Mon Dec  5 
13:31:31 2011        (r30741)
+++ nixpkgs/trunk/pkgs/build-support/release/source-tarball.nix Mon Dec  5 
14:16:30 2011        (r30742)
@@ -6,16 +6,15 @@
 , buildInputs ? []
 , name ? "source-tarball"
 , version ? "0"
+, versionSuffix ? 
+    if officialRelease
+    then ""
+    else if src ? rev then "pre${toString src.rev}" else ""
 , src, stdenv, autoconf, automake, libtool
 , ... } @ args:
 
 let
 
-  versionSuffix =
-    if officialRelease
-    then ""
-    else if src ? rev then "pre${toString src.rev}" else "";
-
   # By default, provide all the GNU Build System as input.
   bootstrapBuildInputs =
     if (args ? bootstrapBuildInputs)
_______________________________________________
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to