Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Profpatsch/dc061a6ea4b1db28dfe9e49e4bc4d039 to your computer and use it in GitHub Desktop.
Save Profpatsch/dc061a6ea4b1db28dfe9e49e4bc4d039 to your computer and use it in GitHub Desktop.
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