2023-01-20 10:41:00 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2021-04-05 15:23:46 +00:00
|
|
|
, meson, ninja, pkg-config
|
|
|
|
, python3
|
|
|
|
, curl
|
|
|
|
, icu
|
2023-01-20 10:41:00 +00:00
|
|
|
, libzim
|
2021-04-05 15:23:46 +00:00
|
|
|
, pugixml
|
|
|
|
, zlib
|
|
|
|
, libmicrohttpd
|
|
|
|
, mustache-hpp
|
|
|
|
, gtest
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2023-01-20 10:41:00 +00:00
|
|
|
pname = "libkiwix";
|
|
|
|
version = "12.0.0";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kiwix";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-01-20 10:41:00 +00:00
|
|
|
sha256 = "sha256-4FxLxJxVhqbeNqX4vorHkROUuRURvE6AXlteIZCEBtc=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
icu
|
|
|
|
zlib
|
|
|
|
mustache-hpp
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
curl
|
|
|
|
libmicrohttpd
|
2023-01-20 10:41:00 +00:00
|
|
|
libzim
|
2021-04-05 15:23:46 +00:00
|
|
|
pugixml
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-04-05 15:23:46 +00:00
|
|
|
gtest
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs scripts
|
|
|
|
'';
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
2021-04-05 15:23:46 +00:00
|
|
|
}
|