Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
cmake,
|
|
curl,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "nghttp3";
|
|
version = "1.11.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ngtcp2/nghttp3/releases/download/v${finalAttrs.version}/nghttp3-${finalAttrs.version}.tar.bz2";
|
|
hash = "sha256-AAKlyoVtsFmqbcac9zL7sA2aHnPteISPXUjyYh8gyoo=";
|
|
};
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"doc"
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
cmakeFlags =
|
|
if stdenv.hostPlatform.isStatic then
|
|
[
|
|
(lib.cmakeBool "ENABLE_SHARED_LIB" false)
|
|
(lib.cmakeBool "ENABLE_STATIC_LIB" true)
|
|
]
|
|
else
|
|
[
|
|
(lib.cmakeBool "ENABLE_STATIC_LIB" false)
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
passthru.tests = {
|
|
inherit curl;
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://github.com/ngtcp2/nghttp3";
|
|
changelog = "https://github.com/ngtcp2/nghttp3/releases/tag/v${finalAttrs.version}";
|
|
description = "Implementation of HTTP/3 mapping over QUIC and QPACK in C";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [ izorkin ];
|
|
};
|
|
})
|