···1{ version, sha256, patches ? [] }:
23{ lib, stdenv, buildPackages, fetchurl, perl, xz, libintl, bash
045# we are a dependency of gcc, this simplifies bootstraping
6, interactive ? false, ncurses, procps
···3031 postPatch = ''
32 patchShebangs tp/maintain
00000033 '';
3435 # ncurses is required to build `makedoc'
···82 license = licenses.gpl3Plus;
83 platforms = platforms.all;
84 maintainers = with maintainers; [ vrthra oxij ];
008586 longDescription = ''
87 Texinfo is the official documentation format of the GNU project.
···1{ version, sha256, patches ? [] }:
23{ lib, stdenv, buildPackages, fetchurl, perl, xz, libintl, bash
4+, gnulib
56# we are a dependency of gcc, this simplifies bootstraping
7, interactive ? false, ncurses, procps
···3132 postPatch = ''
33 patchShebangs tp/maintain
34+ ''
35+ # This patch is needed for IEEE-standard long doubles on
36+ # powerpc64; it does not apply cleanly to texinfo 5.x or
37+ # earlier. It is merged upstream in texinfo 6.8.
38+ + lib.optionalString (with lib.strings; versionAtLeast version "6.0" && versionOlder version "6.8") ''
39+ patch -p1 -d gnulib < ${gnulib.passthru.longdouble-redirect-patch}
40 '';
4142 # ncurses is required to build `makedoc'
···89 license = licenses.gpl3Plus;
90 platforms = platforms.all;
91 maintainers = with maintainers; [ vrthra oxij ];
92+ # see comment above in patches section
93+ broken = stdenv.hostPlatform.isPower64 && lib.strings.versionOlder version "6.0";
9495 longDescription = ''
96 Texinfo is the official documentation format of the GNU project.