diff --git a/pkgs/by-name/li/libhsts/gettext-0.25.patch b/pkgs/by-name/li/libhsts/gettext-0.25.patch new file mode 100644 index 000000000000..3f99e164624b --- /dev/null +++ b/pkgs/by-name/li/libhsts/gettext-0.25.patch @@ -0,0 +1,20 @@ +diff --git a/configure.ac b/configure.ac +index 4d443c1..42c3568 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -31,13 +31,8 @@ AC_CONFIG_FILES([include/libhsts.h]) + # + # Gettext + # +-m4_ifdef([AM_GNU_GETTEXT], [ +- AM_GNU_GETTEXT([external],[need-ngettext]) +-]) +-m4_ifdef([AM_GNU_GETTEXT_VERSION], [ +-#do not indent here +-AM_GNU_GETTEXT_VERSION([0.18.2]) +-]) ++AM_GNU_GETTEXT([external],[need-ngettext]) ++AM_GNU_GETTEXT_VERSION([0.19.8]) + + # + # check for doxygen and pandoc diff --git a/pkgs/by-name/li/libhsts/package.nix b/pkgs/by-name/li/libhsts/package.nix index f5fbbb164385..df8fa7c011ce 100644 --- a/pkgs/by-name/li/libhsts/package.nix +++ b/pkgs/by-name/li/libhsts/package.nix @@ -28,6 +28,10 @@ stdenv.mkDerivation rec { sha256 = "0gbchzf0f4xzb6zjc56dk74hqrmdgyirmgxvvsqp9vqn9wb5kkx4"; }; + patches = [ + ./gettext-0.25.patch + ]; + postPatch = '' pushd tests cp ${hsts_list} transport_security_state_static.json