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";