nixpkgs/pkgs/servers/http/h2o/default.nix
Austin Seipp 889537352b
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>
2019-09-19 18:28:04 -05:00

31 lines
754 B
Nix

{ stdenv, fetchFromGitHub
, pkgconfig, cmake, ninja
, libressl, 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" ];
enableParallelBuilding = true;
nativeBuildInputs = [ pkgconfig cmake ninja ];
buildInputs = [ libressl libuv zlib ];
meta = with stdenv.lib; {
description = "Optimized HTTP/1 and HTTP/2 server";
homepage = https://h2o.examp1e.net;
license = licenses.mit;
maintainers = with maintainers; [ thoughtpolice ];
platforms = platforms.linux;
};
}