nixos-seafile-overlay/libevhtp/default.nix

28 lines
668 B
Nix

{ stdenv, fetchFromGitHub, lib,
cmake,
libevent,
# optional:
openssl, pth, oniguruma
}:
stdenv.mkDerivation rec {
name = "libevhtp";
version = "1.2.15";
src = fetchFromGitHub {
owner = "ellzey";
repo = "libevhtp";
rev = version;
sha256 = "01c4l77arph8qyrhak4ik6kf60wb5msymqmfl4w7gzmgns2n0p89";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libevent openssl pth oniguruma ];
meta = {
description = "Create extremely-fast and secure embedded HTTP servers with ease.";
homepage = "https://github.com/ellzey/libevhtp";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ schmittlauch ];
};
}