git.iko.soy/typeable/nixpkgs
on master help sign in
h2o: 2.2.6 -> 2.3.0-beta2, enable multi-output

This also lets us remove a hack for supporting LibreSSL 2.7, since we're now using 2.9 by default, anyway. Finally, use Ninja to run the CMake build instead of Make -- speeds things up for me by a few seconds. Signed-off-by: Austin Seipp <aseipp@pobox.com>

commit889537352b5e208017dad66dd51b3923b7f2d23f authorAustin Seipp <aseipp@pobox.com> dateThu 19 Sep 2019, 18:11 (7 years ago) parent8dbca5e
1 file changed+11−20
pkgs/servers/http/h2o/default.nix+11−20
pkgs/servers/http/h2o/default.nix+11−20
@@ -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}