Created
May 18, 2016 12:44
-
-
Save Profpatsch/dc061a6ea4b1db28dfe9e49e4bc4d039 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
modified pkgs/build-support/release/debian-build.nix | |
@@ -54,11 +54,15 @@ vmTools.runInLinuxImage (stdenv.mkDerivation ( | |
eval "$preInstall" | |
export LOGNAME=root | |
+ # otherwise build hangs when it wants to display | |
+ # the log file | |
+ export PAGER=cat | |
${checkinstall}/sbin/checkinstall --nodoc -y -D \ | |
--fstrans=${if fsTranslation then "yes" else "no"} \ | |
--requires="${concatStringsSep "," debRequires}" \ | |
--provides="${concatStringsSep "," debProvides}" \ | |
- ${optionalString (src ? version) "--pkgversion=$(echo ${src.version} | tr _ -)"} \ | |
+ ${if (src ? version) then "--pkgversion=$(echo ${src.version} | tr _ -)" | |
+ else "--pkgversion=0.0.0"} \ | |
''${debMaintainer:+--maintainer="'$debMaintainer'"} \ | |
''${debName:+--pkgname="'$debName'"} \ | |
$checkInstallFlags \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment