2022-12-16 01:19:54 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2023-05-15 12:38:22 +02:00
|
|
|
, gitUpdater
|
2022-12-16 01:19:54 +01:00
|
|
|
, icu
|
|
|
|
, libkiwix
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
2024-02-26 06:34:53 +01:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-12-16 01:19:54 +01:00
|
|
|
pname = "kiwix-tools";
|
2024-03-15 10:00:06 +01:00
|
|
|
version = "3.7.0";
|
2022-12-16 01:19:54 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kiwix";
|
|
|
|
repo = "kiwix-tools";
|
2024-02-26 06:34:53 +01:00
|
|
|
rev = finalAttrs.version;
|
2024-03-15 10:00:06 +01:00
|
|
|
hash = "sha256-JwF4EN5kyHEfNoMhHb9ywe+7pmgQtjEd2FeRUeTjvQw=";
|
2022-12-16 01:19:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
icu
|
|
|
|
libkiwix
|
|
|
|
];
|
|
|
|
|
2023-05-15 12:38:22 +02:00
|
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
|
2022-12-16 01:19:54 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Command line Kiwix tools: kiwix-serve, kiwix-manage, ...";
|
|
|
|
homepage = "https://kiwix.org";
|
2024-02-26 06:34:53 +01:00
|
|
|
changelog = "https://github.com/kiwix/kiwix-tools/releases/tag/${finalAttrs.version}";
|
2022-12-16 01:19:54 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ colinsane ];
|
|
|
|
};
|
2024-02-26 06:34:53 +01:00
|
|
|
})
|