2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config, cmake, ninja
|
2020-04-24 23:36:52 +00:00
|
|
|
, 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" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ninja ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ openssl libuv zlib ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Optimized HTTP/1 and HTTP/2 server";
|
|
|
|
homepage = "https://h2o.examp1e.net";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|