2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config, 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
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ninja ];
|
2019-12-21 22:38:07 +00:00
|
|
|
buildInputs = [ openssl libuv zlib ];
|
2018-02-14 20:01:13 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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
|
|
|
};
|
|
|
|
}
|