nixpkgs/pkgs/applications/misc/kiwix/lib.nix

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

56 lines
704 B
Nix
Raw Normal View History

2021-03-27 23:30:12 +00:00
{ stdenv, lib, fetchFromGitHub
, meson, ninja, pkg-config
, python3
, curl
, icu
, pugixml
, zimlib
, zlib
, libmicrohttpd
, mustache-hpp
, gtest
}:
stdenv.mkDerivation rec {
pname = "kiwix-lib";
2022-06-10 14:21:47 +00:00
version = "10.1.1";
2021-03-27 23:30:12 +00:00
src = fetchFromGitHub {
owner = "kiwix";
repo = pname;
rev = version;
2022-06-10 14:21:47 +00:00
sha256 = "sha256-ECvdraN1J5XJQLeZDngxO5I7frwZ8+W8tFpbB7o8UeM=";
2021-03-27 23:30:12 +00:00
};
nativeBuildInputs = [
meson
ninja
pkg-config
python3
];
buildInputs = [
icu
zlib
mustache-hpp
];
propagatedBuildInputs = [
curl
libmicrohttpd
pugixml
zimlib
];
checkInputs = [
gtest
];
doCheck = true;
postPatch = ''
patchShebangs scripts
'';
}