@@ -1,39 +1,30 @@
11{ stdenv, fetchFromGitHub
2−, pkgconfig, cmake
2+, pkgconfig, cmake, ninja
33, libressl, libuv, zlib
44}:
55
6−with builtins;
7−
86stdenv.mkDerivation rec {
9− pname = "h2o";
10− version = "2.2.6";
7+ pname = "h2o";
8+ version = "2.3.0-beta2";
119
1210 src = fetchFromGitHub {
1311 owner = "h2o";
1412 repo = "h2o";
1513 rev = "refs/tags/v${version}";
16− sha256 = "0qni676wqvxx0sl0pw9j0ph7zf2krrzqc1zwj73mgpdnsr8rsib7";
14+ sha256 = "0lwg5sfsr7fw7cfy0hrhadgixm35b5cgcvlhwhbk89j72y1bqi6n";
1715 };
1816
19− # We have to fix up some function prototypes, because despite upstream h2o
20− # issue #1705 (https://github.com/h2o/h2o/issues/1706), libressl 2.7+ doesn't
21− # seem to work
22− patchPhase = ''
23− substituteInPlace ./deps/neverbleed/neverbleed.c \
24− --replace 'static void RSA_' 'void RSA_' \
25− --replace 'static int RSA_' 'int RSA_'
26− '';
17+ outputs = [ "out" "man" "dev" "lib" ];
2718
28− nativeBuildInputs = [ pkgconfig cmake ];
29− buildInputs = [ libressl libuv zlib ];
3019 enableParallelBuilding = true;
20+ nativeBuildInputs = [ pkgconfig cmake ninja ];
21+ buildInputs = [ libressl libuv zlib ];
3122
32− meta = {
23+ meta = with stdenv.lib; {
3324 description = "Optimized HTTP/1 and HTTP/2 server";
3425 homepage = https://h2o.examp1e.net;
35− license = stdenv.lib.licenses.mit;
36− maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
37− platforms = stdenv.lib.platforms.linux;
26+ license = licenses.mit;
27+ maintainers = with maintainers; [ thoughtpolice ];
28+ platforms = platforms.linux;
3829 };
3930}