nixpkgs/pkgs/by-name/ng/nghttp3/package.nix
2025-06-06 09:30:56 +00:00

47 lines
833 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
curlHTTP3,
}:
stdenv.mkDerivation rec {
pname = "nghttp3";
version = "1.10.1";
src = fetchFromGitHub {
owner = "ngtcp2";
repo = "nghttp3";
rev = "v${version}";
hash = "sha256-V4JFqi3VdblpBlZJ1uFX56AlJn894oiX86OfoxVjBbE=";
fetchSubmodules = true;
};
outputs = [
"out"
"dev"
"doc"
];
nativeBuildInputs = [ cmake ];
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 ];
};
}