···11{ version, sha256, patches ? [] }:
2233{ lib, stdenv, buildPackages, fetchurl, perl, xz, libintl, bash
44+, gnulib
4556# we are a dependency of gcc, this simplifies bootstraping
67, interactive ? false, ncurses, procps
···30313132 postPatch = ''
3233 patchShebangs tp/maintain
3434+ ''
3535+ # This patch is needed for IEEE-standard long doubles on
3636+ # powerpc64; it does not apply cleanly to texinfo 5.x or
3737+ # earlier. It is merged upstream in texinfo 6.8.
3838+ + lib.optionalString (with lib.strings; versionAtLeast version "6.0" && versionOlder version "6.8") ''
3939+ patch -p1 -d gnulib < ${gnulib.passthru.longdouble-redirect-patch}
3340 '';
34413542 # ncurses is required to build `makedoc'
···8289 license = licenses.gpl3Plus;
8390 platforms = platforms.all;
8491 maintainers = with maintainers; [ vrthra oxij ];
9292+ # see comment above in patches section
9393+ broken = stdenv.hostPlatform.isPower64 && lib.strings.versionOlder version "6.0";
85948695 longDescription = ''
8796 Texinfo is the official documentation format of the GNU project.