@@ -54,11 +54,15 @@ vmTools.runInLinuxImage (stdenv.mkDerivation (
54 eval "$preInstall"
54 eval "$preInstall"
55 export LOGNAME=root
55 export LOGNAME=root
57+ # otherwise build hangs when it wants to display
57 ${checkinstall}/sbin/checkinstall --nodoc -y -D \
60 ${checkinstall}/sbin/checkinstall --nodoc -y -D \
58 --fstrans=${if fsTranslation then "yes" else "no"} \
61 --fstrans=${if fsTranslation then "yes" else "no"} \
59 --requires="${concatStringsSep "," debRequires}" \
62 --requires="${concatStringsSep "," debRequires}" \
60 --provides="${concatStringsSep "," debProvides}" \
63 --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"} \
62 ''${debMaintainer:+--maintainer="'$debMaintainer'"} \
66 ''${debMaintainer:+--maintainer="'$debMaintainer'"} \
63 ''${debName:+--pkgname="'$debName'"} \
67 ''${debName:+--pkgname="'$debName'"} \
64 $checkInstallFlags \
68 $checkInstallFlags \