2018-02-14 20:01:13 +00:00
|
|
|
{ stdenv, fetchFromGitHub
|
2019-09-20 00:11:55 +01:00
|
|
|
, pkgconfig, cmake, ninja
|
2019-12-21 22:38:07 +00:00
|
|
|
, openssl, libuv, zlib
|
2018-02-14 20:01:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-09-20 00:11:55 +01:00
|
|
|
pname = "h2o";
|
|
|
|
version = "2.3.0-beta2";
|
2018-02-14 20:01:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "h2o";
|
|
|
|
repo = "h2o";
|
|
|
|
rev = "refs/tags/v${version}";
|
2019-09-20 00:11:55 +01:00
|
|
|
sha256 = "0lwg5sfsr7fw7cfy0hrhadgixm35b5cgcvlhwhbk89j72y1bqi6n";
|
2018-02-14 20:01:13 +00:00
|
|
|
};
|
|
|
|
|
2019-09-20 00:11:55 +01:00
|
|
|
outputs = [ "out" "man" "dev" "lib" ];
|
2018-08-09 00:47:30 +01:00
|
|
|
|
2018-02-14 20:01:13 +00:00
|
|
|
enableParallelBuilding = true;
|
2019-09-20 00:11:55 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig cmake ninja ];
|
2019-12-21 22:38:07 +00:00
|
|
|
buildInputs = [ openssl libuv zlib ];
|
2018-02-14 20:01:13 +00:00
|
|
|
|
2019-09-20 00:11:55 +01:00
|
|
|
meta = with stdenv.lib; {
|
2018-02-14 20:01:13 +00:00
|
|
|
description = "Optimized HTTP/1 and HTTP/2 server";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://h2o.examp1e.net";
|
2019-09-20 00:11:55 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
platforms = platforms.linux;
|
2018-02-14 20:01:13 +00:00
|
|
|
};
|
|
|
|
}
|