depot/third_party/nixpkgs/pkgs/applications/misc/kiwix/tools.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

44 lines
857 B
Nix

{ lib
, fetchFromGitHub
, gitUpdater
, icu
, libkiwix
, meson
, ninja
, pkg-config
, stdenv
}:
stdenv.mkDerivation (finalAttrs: {
pname = "kiwix-tools";
version = "3.6.0";
src = fetchFromGitHub {
owner = "kiwix";
repo = "kiwix-tools";
rev = finalAttrs.version;
hash = "sha256-+th86lMAuCcmWj06yQoZ1L7rLZKqNvuTrV+Rra2km44=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
];
buildInputs = [
icu
libkiwix
];
passthru.updateScript = gitUpdater { };
meta = with lib; {
description = "Command line Kiwix tools: kiwix-serve, kiwix-manage, ...";
homepage = "https://kiwix.org";
changelog = "https://github.com/kiwix/kiwix-tools/releases/tag/${finalAttrs.version}";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ colinsane ];
};
})