2021-11-14 15:12:35 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2023-03-25 11:28:22 +00:00
|
|
|
, cmake
|
2022-05-19 20:44:57 +01:00
|
|
|
, cunit, ncurses
|
2022-09-05 15:19:08 +01:00
|
|
|
, curlHTTP3
|
2021-11-14 15:12:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nghttp3";
|
2023-11-28 08:36:31 +00:00
|
|
|
version = "1.1.0";
|
2021-11-14 15:12:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ngtcp2";
|
|
|
|
repo = pname;
|
2022-04-28 22:45:13 +01:00
|
|
|
rev = "v${version}";
|
2023-11-28 08:36:31 +00:00
|
|
|
hash = "sha256-B/5r0mRpOEi5DQ7OUAAcDmAm1nnak6qNz4qjDrzWlDc=";
|
2021-11-14 15:12:35 +00:00
|
|
|
};
|
|
|
|
|
2022-05-19 20:44:57 +01:00
|
|
|
outputs = [ "out" "dev" "doc" ];
|
|
|
|
|
2023-03-25 11:28:22 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ cunit ncurses ];
|
2021-11-14 15:12:35 +00:00
|
|
|
|
2023-03-25 11:28:22 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DENABLE_STATIC_LIB=OFF"
|
|
|
|
];
|
2021-11-14 15:12:35 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
2022-02-03 16:34:36 +00:00
|
|
|
enableParallelBuilding = true;
|
2021-11-14 15:12:35 +00:00
|
|
|
|
2022-09-05 15:19:08 +01:00
|
|
|
passthru.tests = {
|
|
|
|
inherit curlHTTP3;
|
|
|
|
};
|
|
|
|
|
2021-11-14 15:12:35 +00:00
|
|
|
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;
|
2022-02-03 16:34:36 +00:00
|
|
|
platforms = platforms.unix;
|
2021-11-14 15:12:35 +00:00
|
|
|
maintainers = with maintainers; [ izorkin ];
|
|
|
|
};
|
|
|
|
}
|