···11-{ stdenv, lib, fetchurl, fetchpatch, libiconv, xz, bash }:
11+{ stdenv, lib, fetchurl, fetchpatch, libiconv, xz, bash
22+, gnulib
33+}:
2435# Note: this package is used for bootstrapping fetchurl, and thus
46# cannot use fetchpatch! All mutable patches (generated by GitHub or
···4547 '' + lib.optionalString stdenv.hostPlatform.isCygwin ''
4648 sed -i -e "s/\(cldr_plurals_LDADD = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in
4749 sed -i -e "s/\(libgettextsrc_la_LDFLAGS = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in
5050+ '' +
5151+ # This change to gettext's vendored copy of gnulib is already
5252+ # merged upstream; we can drop this patch on the next version
5353+ # bump. It must be applied twice because gettext vendors gnulib
5454+ # not once, but twice!
5555+ ''
5656+ patch -p2 -d gettext-tools/gnulib-lib/ < ${gnulib.passthru.longdouble-redirect-patch}
5757+ patch -p2 -d gettext-tools/libgrep/ < ${gnulib.passthru.longdouble-redirect-patch}
4858 '';
49595060 strictDeps = true;