@@ -54,11 +54,15 @@ vmTools.runInLinuxImage (stdenv.mkDerivation (
5454 eval "$preInstall"
5555 export LOGNAME=root
5656
57+ # otherwise build hangs when it wants to display
58+ # the log file
59+ export PAGER=cat
5760 ${checkinstall}/sbin/checkinstall --nodoc -y -D \
5861 --fstrans=${if fsTranslation then "yes" else "no"} \
5962 --requires="${concatStringsSep "," debRequires}" \
6063 --provides="${concatStringsSep "," debProvides}" \
61− ${optionalString (src ? version) "--pkgversion=$(echo ${src.version} | tr _ -)"} \
64+ ${if (src ? version) then "--pkgversion=$(echo ${src.version} | tr _ -)"
65+ else "--pkgversion=0.0.0"} \
6266 ''${debMaintainer:+--maintainer="'$debMaintainer'"} \
6367 ''${debName:+--pkgname="'$debName'"} \
6468 $checkInstallFlags \