2019-10-09 00:53:54 +02:00
|
|
|
{ stdenv, fetchFromGitHub, lib,
|
|
|
|
cmake,
|
|
|
|
libevent,
|
|
|
|
# optional:
|
|
|
|
openssl, pth, oniguruma
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libevhtp";
|
2019-10-09 00:54:44 +02:00
|
|
|
version = "1.2.18";
|
2019-10-09 00:53:54 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-10-09 00:54:44 +02:00
|
|
|
owner = "criticalstack";
|
2019-10-09 00:53:54 +02:00
|
|
|
repo = "libevhtp";
|
|
|
|
rev = version;
|
2019-10-09 00:54:44 +02:00
|
|
|
sha256 = "sha256:085yzrawn0gkfgiz02vwmlhawyaba4yqx98q3y4p95fhzs5wqwcb";
|
2019-10-09 00:53:54 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2019-10-09 00:54:44 +02:00
|
|
|
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;
|
2019-10-09 00:54:44 +02:00
|
|
|
platforms = lib.platforms.unix;
|
2019-10-09 00:53:54 +02:00
|
|
|
maintainers = with lib.maintainers; [ schmittlauch ];
|
|
|
|
};
|
|
|
|
}
|