nixos-seafile-overlay/libevhtp/default.nix

31 lines
821 B
Nix
Raw Normal View History

2019-10-09 00:53:54 +02:00
{ stdenv, fetchFromGitHub, lib,
cmake,
libevent,
# optional:
openssl, pth, oniguruma
}:
stdenv.mkDerivation rec {
name = "libevhtp";
version = "1.2.18";
2019-10-09 00:53:54 +02:00
src = fetchFromGitHub {
owner = "criticalstack";
2019-10-09 00:53:54 +02:00
repo = "libevhtp";
rev = version;
sha256 = "sha256:085yzrawn0gkfgiz02vwmlhawyaba4yqx98q3y4p95fhzs5wqwcb";
2019-10-09 00:53:54 +02:00
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libevent pth openssl ];
propagatedBuildInputs = [ oniguruma ];
cmakeFlags = [ "-DEVHTP_DISABLE_SSL=OFF" "-DEVHTP_BUILD_SHARED=ON" ];
2019-10-09 00:53:54 +02:00
meta = {
description = "Create extremely-fast and secure embedded HTTP servers with ease.";
homepage = "https://github.com/ellzey/libevhtp";
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
2019-10-09 00:53:54 +02:00
maintainers = with lib.maintainers; [ schmittlauch ];
};
}