Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / seafile-server / libevhtp.nix
blob97cdc0804faa7fe3de6937dd9c338b9b66ea517c
1 { stdenv, lib, fetchFromGitHub, cmake, libevent }:
3 stdenv.mkDerivation rec {
4   pname = "libevhtp";
5   version = "unstable-2021-04-28";
7   src = fetchFromGitHub {
8     owner = "haiwen";
9     repo = "libevhtp";
10     rev = "18c649203f009ef1d77d6f8301eba09af3777adf";
11     sha256 = "1rf0jcy2lf8jbzpkhfgv289hc8zdy5zs6sn36k4vlqvilginxiid";
12   };
14   nativeBuildInputs = [ cmake ];
16   buildInputs = [ libevent ];
18   cmakeFlags = [
19     "-DEVHTP_DISABLE_SSL=ON"
20     "-DEVHTP_BUILD_SHARED=ON"
21   ];
23   meta = with lib; {
24     description = "Create extremely-fast and secure embedded HTTP servers with ease";
25     homepage = "https://github.com/criticalstack/libevhtp";
26     license = licenses.bsd3;
27     maintainers = with maintainers; [ greizgh schmittlauch ];
28   };