nixpkgs-suyu/pkgs/applications/misc/kiwix/lib.nix
2023-09-20 03:06:48 +00:00

62 lines
946 B
Nix

{ lib, stdenv, fetchFromGitHub
, meson, ninja, pkg-config
, python3
, curl
, icu
, libzim
, pugixml
, zlib
, libmicrohttpd
, mustache-hpp
, gtest
}:
stdenv.mkDerivation rec {
pname = "libkiwix";
version = "12.1.1";
src = fetchFromGitHub {
owner = "kiwix";
repo = pname;
rev = version;
sha256 = "sha256-hcwLxfn1fiUAiwsnIddv4HukvVrFePtx7sDQUD1lGUA=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
python3
];
buildInputs = [
icu
zlib
mustache-hpp
];
propagatedBuildInputs = [
curl
libmicrohttpd
libzim
pugixml
];
nativeCheckInputs = [
gtest
];
doCheck = true;
postPatch = ''
patchShebangs scripts
'';
meta = with lib; {
description = "Common code base for all Kiwix ports";
homepage = "https://kiwix.org";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ colinsane ];
};
}