From b260cd9e7cbe132b04cb43c332886058e0de38de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 28 Jul 2025 20:56:33 +0200 Subject: [PATCH] libhsts: fix build with gettext 0.25.0 --- pkgs/by-name/li/libhsts/gettext-0.25.patch | 20 ++++++++++++++++++++ pkgs/by-name/li/libhsts/package.nix | 4 ++++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/by-name/li/libhsts/gettext-0.25.patch 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