source-tarball.nix: try src.revCount when src.rev is not available.

This commit is contained in:
Rob Vermaas 2013-01-15 15:03:38 +01:00
parent 76d8b3a530
commit a049615e91

View File

@ -9,7 +9,7 @@
, versionSuffix ?
if officialRelease
then ""
else if src ? rev then "pre${toString src.rev}" else ""
else "pre${toString (src.rev or src.revCount or "")}"
, src, stdenv, autoconf, automake, libtool
, ... } @ args: