1 { lib, stdenv, fetchFromGitHub
3 , brotli, libev, nghttp3, quictls
5 , withJemalloc ? false, jemalloc
9 stdenv.mkDerivation rec {
13 src = fetchFromGitHub {
17 hash = "sha256-wNHaoZ6N9sJhsjlZEQ4iRHA3wvVxQE4cg8W2XeRx0LQ=";
18 fetchSubmodules = true;
21 outputs = [ "out" "dev" "doc" ];
23 nativeBuildInputs = [ cmake ];
29 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
31 ] ++ lib.optional withJemalloc jemalloc;
34 (lib.cmakeBool "ENABLE_STATIC_LIB" false)
44 homepage = "https://github.com/ngtcp2/ngtcp2";
45 description = "ngtcp2 project is an effort to implement QUIC protocol which is now being discussed in IETF QUICWG for its standardization";
46 license = licenses.mit;
47 platforms = platforms.unix;
48 maintainers = with maintainers; [ izorkin ];