html2text: fix build with gettext 0.25

Changed files
+39 -1
pkgs
by-name
+29
pkgs/by-name/ht/html2text/gettext-0.25.patch
···
+
diff --git a/Makefile.am b/Makefile.am
+
index af28077..e746147 100644
+
--- a/Makefile.am
+
+++ b/Makefile.am
+
@@ -13,6 +13,8 @@
+
AUTOMAKE_OPTIONS = foreign
+
ACLOCAL_AMFLAGS = -I m4
+
+
+SUBDIRS =
+
+
+
AM_YFLAGS = -d -Wno-yacc
+
+
bin_PROGRAMS = html2text
+
diff --git a/configure.ac b/configure.ac
+
index af3ce8e..a80d1fd 100644
+
--- a/configure.ac
+
+++ b/configure.ac
+
@@ -15,8 +15,11 @@
+
+
AC_PREREQ([2.71])
+
AC_INIT([html2text], [2.2.3], [BUG-REPORT-ADDRESS])
+
+AC_CONFIG_MACRO_DIRS([m4])
+
AM_INIT_AUTOMAKE
+
AM_MAINTAINER_MODE([disable])
+
+AM_GNU_GETTEXT_VERSION([0.20])
+
+AM_GNU_GETTEXT([external])
+
AM_ICONV
+
#AC_CONFIG_SRCDIR([html.h])
+
#AC_CONFIG_HEADERS([config.h])
+10 -1
pkgs/by-name/ht/html2text/package.nix
···
stdenv,
fetchFromGitLab,
autoreconfHook,
+
gettext,
libiconv,
}:
···
hash = "sha256-7Ch51nJ5BeRqs4PEIPnjCGk+Nm2ydgJQCtkcpihXun8=";
};
-
nativeBuildInputs = [ autoreconfHook ];
+
nativeBuildInputs = [
+
autoreconfHook
+
gettext
+
];
+
+
# These changes have all been made in HEAD, across several commits
+
# amongst other changes.
+
# See https://gitlab.com/grobian/html2text/-/merge_requests/57
+
patches = [ ./gettext-0.25.patch ];
buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv;