Merge #227471: texinfo: apply gnulib patch only to version 6.7

(cherry picked from commit db3ab32a69)
Fixes build of version 6.5: https://hydra.nixos.org/build/216602149
This commit is contained in:
Artturi 2023-04-21 22:18:33 +03:00 committed by Vladimír Čunát
parent 52f2c9fe9e
commit e5aabf059e
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -35,7 +35,7 @@ stdenv.mkDerivation {
# This patch is needed for IEEE-standard long doubles on
# powerpc64; it does not apply cleanly to texinfo 5.x or
# earlier. It is merged upstream in texinfo 6.8.
+ lib.optionalString (with lib.strings; versionAtLeast version "6.0" && versionOlder version "6.8") ''
+ lib.optionalString (version == "6.7") ''
patch -p1 -d gnulib < ${gnulib.passthru.longdouble-redirect-patch}
'';