From 0a7b767d423585233ff1014aa0d75c1b19af7297 Mon Sep 17 00:00:00 2001 From: Adam Thompson-Sharpe Date: Mon, 2 Mar 2026 00:02:01 -0500 Subject: [PATCH 1/4] libzim: 9.3.0 -> 9.5.0 --- pkgs/by-name/li/libzim/package.nix | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/li/libzim/package.nix b/pkgs/by-name/li/libzim/package.nix index 5ad134b09014..305a6263b58b 100644 --- a/pkgs/by-name/li/libzim/package.nix +++ b/pkgs/by-name/li/libzim/package.nix @@ -3,6 +3,7 @@ stdenv, fetchFromGitHub, fetchpatch, + nix-update-script, icu, meson, ninja, @@ -15,24 +16,15 @@ stdenv.mkDerivation (finalAttrs: { pname = "libzim"; - version = "9.3.0"; + version = "9.5.0"; src = fetchFromGitHub { owner = "openzim"; repo = "libzim"; tag = finalAttrs.version; - hash = "sha256-DZiFeZ2ry3JpXDs3mvf0q7diwhkjQ2730KQkDQPbgcY="; + hash = "sha256-YeskvTtwibKQxMY4c6yEHW+EmXUq4AXpd5XLxKfsmXg="; }; - patches = [ - # Upstream patch for ICU76 compatibility. - # https://github.com/openzim/libzim/pull/936 - (fetchpatch { - url = "https://github.com/openzim/libzim/commit/4a42b3c6971c9534b104f48f6d13db8630a97d2f.patch"; - hash = "sha256-FjaGZ2bI1ROLg3rvWIGLbVoImGr51MbWjbBj+lGj1rs="; - }) - ]; - nativeBuildInputs = [ ninja meson @@ -60,6 +52,8 @@ stdenv.mkDerivation (finalAttrs: { "-Dtest_data_dir=none" ]; + passthru.updateScript = nix-update-script { }; + meta = { description = "Reference implementation of the ZIM specification"; homepage = "https://github.com/openzim/libzim"; From 848ae369a85d8146af58dabe73ff5eaa60b5ea9b Mon Sep 17 00:00:00 2001 From: Adam Thompson-Sharpe Date: Mon, 2 Mar 2026 00:19:20 -0500 Subject: [PATCH 2/4] libkiwix: 14.0.0 -> 14.1.1 --- pkgs/by-name/li/libkiwix/package.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/li/libkiwix/package.nix b/pkgs/by-name/li/libkiwix/package.nix index d6f02713b208..8f37f8a5c5a4 100644 --- a/pkgs/by-name/li/libkiwix/package.nix +++ b/pkgs/by-name/li/libkiwix/package.nix @@ -19,13 +19,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "libkiwix"; - version = "14.0.0"; + version = "14.1.1"; src = fetchFromGitHub { owner = "kiwix"; repo = "libkiwix"; rev = finalAttrs.version; - hash = "sha256-QP23ZS0FJsMVtnWOofywaAPIU0GJ2L+hLP/x0LXMKiU="; + hash = "sha256-yZWzzu0LLUxg0CbdeKARuaFsf3UxvJJbqPRDGXWDjLI="; }; nativeBuildInputs = [ @@ -56,9 +56,6 @@ stdenv.mkDerivation (finalAttrs: { postPatch = '' patchShebangs scripts - substituteInPlace meson.build \ - --replace-fail "libicu_dep = dependency('icu-i18n', static:static_deps)" \ - "libicu_dep = [dependency('icu-i18n', static:static_deps), dependency('icu-uc', static:static_deps)]" ''; passthru.updateScript = nix-update-script { }; From 8101018f53e1f44bf36ba589f2eb8ed72404418a Mon Sep 17 00:00:00 2001 From: Adam Thompson-Sharpe Date: Mon, 2 Mar 2026 00:21:04 -0500 Subject: [PATCH 3/4] kiwix-tools: 3.7.0-unstable-2024-12-21 -> 3.8.1 --- pkgs/by-name/ki/kiwix-tools/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ki/kiwix-tools/package.nix b/pkgs/by-name/ki/kiwix-tools/package.nix index 9b384f0a8e1f..fa7cad399f3e 100644 --- a/pkgs/by-name/ki/kiwix-tools/package.nix +++ b/pkgs/by-name/ki/kiwix-tools/package.nix @@ -13,13 +13,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "kiwix-tools"; - version = "3.7.0-unstable-2024-12-21"; + version = "3.8.1"; src = fetchFromGitHub { owner = "kiwix"; repo = "kiwix-tools"; - rev = "43b00419dd3f33eb644e1d83c2e802fc200b2de7"; - hash = "sha256-Rctb6ZPTXjgSrLRB5VK4CEqYHuEPB7a+SQaNi47cxv0="; + tag = finalAttrs.version; + hash = "sha256-lq7pP9ftRe26EEVntdY9xs951mvrvUKMMep/Oup4jdE="; }; nativeBuildInputs = [ From 2020da251fa67b3e4a73e8b876e856528a7903a2 Mon Sep 17 00:00:00 2001 From: Adam Thompson-Sharpe Date: Mon, 2 Mar 2026 00:57:30 -0500 Subject: [PATCH 4/4] 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";