···1-{ stdenv, lib, fetchurl, fetchpatch, libiconv, xz, bash }:
0023# Note: this package is used for bootstrapping fetchurl, and thus
4# cannot use fetchpatch! All mutable patches (generated by GitHub or
···45 '' + lib.optionalString stdenv.hostPlatform.isCygwin ''
46 sed -i -e "s/\(cldr_plurals_LDADD = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in
47 sed -i -e "s/\(libgettextsrc_la_LDFLAGS = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in
0000000048 '';
4950 strictDeps = true;
···1+{ stdenv, lib, fetchurl, fetchpatch, libiconv, xz, bash
2+, gnulib
3+}:
45# Note: this package is used for bootstrapping fetchurl, and thus
6# cannot use fetchpatch! All mutable patches (generated by GitHub or
···47 '' + lib.optionalString stdenv.hostPlatform.isCygwin ''
48 sed -i -e "s/\(cldr_plurals_LDADD = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in
49 sed -i -e "s/\(libgettextsrc_la_LDFLAGS = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in
50+ '' +
51+ # This change to gettext's vendored copy of gnulib is already
52+ # merged upstream; we can drop this patch on the next version
53+ # bump. It must be applied twice because gettext vendors gnulib
54+ # not once, but twice!
55+ ''
56+ patch -p2 -d gettext-tools/gnulib-lib/ < ${gnulib.passthru.longdouble-redirect-patch}
57+ patch -p2 -d gettext-tools/libgrep/ < ${gnulib.passthru.longdouble-redirect-patch}
58 '';
5960 strictDeps = true;