mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
63 lines
946 B
Nix
63 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.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kiwix";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-4FxLxJxVhqbeNqX4vorHkROUuRURvE6AXlteIZCEBtc=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|