nixpkgs-suyu/pkgs/applications/misc/kiwix/tools.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
857 B
Nix
Raw Permalink Normal View History

{ lib
, fetchFromGitHub
, gitUpdater
, icu
, libkiwix
, meson
, ninja
, pkg-config
, stdenv
}:
2024-02-26 06:34:53 +01:00
stdenv.mkDerivation (finalAttrs: {
pname = "kiwix-tools";
2024-03-15 10:00:06 +01:00
version = "3.7.0";
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=";
};
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";
2024-02-26 06:34:53 +01:00
changelog = "https://github.com/kiwix/kiwix-tools/releases/tag/${finalAttrs.version}";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ colinsane ];
};
2024-02-26 06:34:53 +01:00
})