about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/http/h2o/default.nix
blob: b533a908ef988cd692ac213bd2dc34a34091d223 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, stdenv, fetchFromGitHub
, pkg-config, cmake, ninja
, openssl, libuv, zlib
}:

stdenv.mkDerivation rec {
  pname   = "h2o";
  version = "2.3.0-beta2";

  src = fetchFromGitHub {
    owner  = "h2o";
    repo   = "h2o";
    rev    = "refs/tags/v${version}";
    sha256 = "0lwg5sfsr7fw7cfy0hrhadgixm35b5cgcvlhwhbk89j72y1bqi6n";
  };

  outputs = [ "out" "man" "dev" "lib" ];

  nativeBuildInputs = [ pkg-config cmake ninja ];
  buildInputs = [ openssl libuv zlib ];

  meta = with lib; {
    description = "Optimized HTTP/1 and HTTP/2 server";
    homepage    = "https://h2o.examp1e.net";
    license     = licenses.mit;
    maintainers = with maintainers; [ thoughtpolice ];
    platforms   = platforms.linux;
  };
}