depot/third_party/nixpkgs/pkgs/development/libraries/nghttp3/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

43 lines
891 B
Nix

{ lib, stdenv, fetchFromGitHub
, cmake
, CoreServices
, curlHTTP3
}:
stdenv.mkDerivation rec {
pname = "nghttp3";
version = "1.3.0";
src = fetchFromGitHub {
owner = "ngtcp2";
repo = pname;
rev = "v${version}";
hash = "sha256-MPycG8Fd7GJnp7WyFlGzbuTCYIF+xq6I7oeqXKFOehQ=";
fetchSubmodules = true;
};
outputs = [ "out" "dev" "doc" ];
nativeBuildInputs = [ cmake ];
buildInputs = lib.optionals stdenv.isDarwin [
CoreServices
];
cmakeFlags = [
(lib.cmakeBool "ENABLE_STATIC_LIB" false)
];
doCheck = true;
passthru.tests = {
inherit curlHTTP3;
};
meta = with lib; {
homepage = "https://github.com/ngtcp2/nghttp3";
description = "nghttp3 is an implementation of HTTP/3 mapping over QUIC and QPACK in C.";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ izorkin ];
};
}