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
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "kiwix-tools";
|
2023-05-15 12:38:22 +02:00
|
|
|
version = "3.5.0";
|
2022-12-16 01:19:54 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kiwix";
|
|
|
|
repo = "kiwix-tools";
|
|
|
|
rev = version;
|
2023-05-15 12:38:22 +02:00
|
|
|
sha256 = "sha256-bOxi51H28LhA+5caX6kllIY5B3Q1FoGVFadFIhYRkG0=";
|
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";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ colinsane ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|