zim-tools: disable werror

The update to libzim deprecated some functions, which caused the build
of zim-tools to fail.
This commit is contained in:
Adam Thompson-Sharpe
2026-03-02 00:57:30 -05:00
parent 8101018f53
commit 2020da251f
+9
View File
@@ -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";