Unverified Commit 2020da25 authored by Adam Thompson-Sharpe's avatar Adam Thompson-Sharpe
Browse files

zim-tools: disable werror

The update to libzim deprecated some functions, which caused the build
of zim-tools to fail.
parent 8101018f
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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";