diff --git a/pkgs/by-name/wg/wget2/gettext-0.25.patch b/pkgs/by-name/wg/wget2/gettext-0.25.patch new file mode 100644 index 000000000000..b165eba642d9 --- /dev/null +++ b/pkgs/by-name/wg/wget2/gettext-0.25.patch @@ -0,0 +1,25 @@ +diff --git a/configure.ac b/configure.ac +index 7429f614..67b0bf0c 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -410,17 +410,11 @@ test "${ENABLE_XATTR}" = "yes" && AC_DEFINE([ENABLE_XATTR], 1, + # + # Gettext + # +-m4_ifdef([AM_GNU_GETTEXT], [ +- AM_GNU_GETTEXT([external],[need-ngettext]) +- AC_CONFIG_FILES([po/Makefile.in]) +- have_po=yes +-], [ +- have_po=no +-]) +-m4_ifdef([AM_GNU_GETTEXT_VERSION], [ ++AM_GNU_GETTEXT([external],[need-ngettext]) ++AC_CONFIG_FILES([po/Makefile.in]) ++have_po=yes + #do not indent here + AM_GNU_GETTEXT_VERSION([0.21]) +-]) + AM_CONDITIONAL([HAVE_PO], [ test "$have_po" = "yes" ]) + + # diff --git a/pkgs/by-name/wg/wget2/package.nix b/pkgs/by-name/wg/wget2/package.nix index 09d71cef462b..51d87ab5632b 100644 --- a/pkgs/by-name/wg/wget2/package.nix +++ b/pkgs/by-name/wg/wget2/package.nix @@ -43,6 +43,10 @@ stdenv.mkDerivation rec { hash = "sha256-0tOoStZHr5opehFmuQdFRPYvOv8IMrDTBNFtoweY3VM="; }; + patches = [ + ./gettext-0.25.patch + ]; + # wget2_noinstall contains forbidden reference to /build/ postPatch = '' substituteInPlace src/Makefile.am \