2022-12-16 00:05:53 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2021-03-27 23:30:12 +00:00
|
|
|
, meson, ninja, pkg-config
|
|
|
|
, python3
|
|
|
|
, curl
|
|
|
|
, icu
|
2022-12-15 13:51:48 +00:00
|
|
|
, libzim
|
2021-03-27 23:30:12 +00:00
|
|
|
, pugixml
|
|
|
|
, zlib
|
|
|
|
, libmicrohttpd
|
|
|
|
, mustache-hpp
|
|
|
|
, gtest
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-12-15 13:51:48 +00:00
|
|
|
pname = "libkiwix";
|
|
|
|
version = "12.0.0";
|
2021-03-27 23:30:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kiwix";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-12-15 13:51:48 +00:00
|
|
|
sha256 = "sha256-4FxLxJxVhqbeNqX4vorHkROUuRURvE6AXlteIZCEBtc=";
|
2021-03-27 23:30:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
icu
|
|
|
|
zlib
|
|
|
|
mustache-hpp
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
curl
|
|
|
|
libmicrohttpd
|
2022-12-15 13:51:48 +00:00
|
|
|
libzim
|
2021-03-27 23:30:12 +00:00
|
|
|
pugixml
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-03-27 23:30:12 +00:00
|
|
|
gtest
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs scripts
|
|
|
|
'';
|
2022-12-16 00:05:53 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Common code base for all Kiwix ports";
|
|
|
|
homepage = "https://kiwix.org";
|
2022-12-16 00:19:54 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2022-12-16 00:05:53 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ colinsane ];
|
|
|
|
};
|
2021-03-27 23:30:12 +00:00
|
|
|
}
|