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

63 lines
1 KiB
Nix

{ lib, stdenv, fetchFromGitHub
, meson, ninja, pkg-config
, python3
, curl
, icu
, libzim
, pugixml
, zlib
, libmicrohttpd
, mustache-hpp
, gtest
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libkiwix";
version = "13.1.0";
src = fetchFromGitHub {
owner = "kiwix";
repo = "libkiwix";
rev = finalAttrs.version;
hash = "sha256-DKOwzfGyad/3diOaV1K8hXqT8YGfqCP6QDKDkxWu/1U=";
};
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";
changelog = "https://github.com/kiwix/libkiwix/releases/tag/${finalAttrs.version}";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ colinsane ];
};
})