From 2020da251fa67b3e4a73e8b876e856528a7903a2 Mon Sep 17 00:00:00 2001 From: Adam Thompson-Sharpe Date: Mon, 2 Mar 2026 00:57:30 -0500 Subject: [PATCH] zim-tools: disable werror The update to libzim deprecated some functions, which caused the build of zim-tools to fail. --- pkgs/by-name/zi/zim-tools/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/zi/zim-tools/package.nix b/pkgs/by-name/zi/zim-tools/package.nix index 9dcf8baa538d..9e27a70b7f94 100644 --- a/pkgs/by-name/zi/zim-tools/package.nix +++ b/pkgs/by-name/zi/zim-tools/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + nix-update-script, meson, ninja, pkg-config, @@ -33,6 +34,12 @@ stdenv.mkDerivation (finalAttrs: { ./fix_build_with_icu76.patch ]; + postPatch = '' + # Disable werror, since the use of deprecated functions in libzim causes the build to fail + substituteInPlace meson.build \ + --replace-fail "'werror=true', " "" + ''; + nativeBuildInputs = [ meson ninja @@ -52,6 +59,8 @@ stdenv.mkDerivation (finalAttrs: { nativeCheckInputs = [ gtest ]; doCheck = true; + passthru.updateScript = nix-update-script { }; + meta = { description = "Various ZIM command line tools"; homepage = "https://github.com/openzim/zim-tools";