|
|
@ -1,21 +1,23 @@ |
|
|
|
{ lib, stdenv, fetchFromGitHub |
|
|
|
{ lib, stdenv, fetchFromGitHub |
|
|
|
, autoreconfHook, pkg-config |
|
|
|
, autoreconfHook, pkg-config, file |
|
|
|
, cunit, file, ncurses |
|
|
|
|
|
|
|
, libev, nghttp3, quictls |
|
|
|
, libev, nghttp3, quictls |
|
|
|
|
|
|
|
, cunit, ncurses |
|
|
|
, withJemalloc ? false, jemalloc |
|
|
|
, withJemalloc ? false, jemalloc |
|
|
|
}: |
|
|
|
}: |
|
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec { |
|
|
|
stdenv.mkDerivation rec { |
|
|
|
pname = "ngtcp2"; |
|
|
|
pname = "ngtcp2"; |
|
|
|
version = "0.4.0"; |
|
|
|
version = "0.5.0"; |
|
|
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub { |
|
|
|
src = fetchFromGitHub { |
|
|
|
owner = "ngtcp2"; |
|
|
|
owner = "ngtcp2"; |
|
|
|
repo = pname; |
|
|
|
repo = pname; |
|
|
|
rev = "v${version}"; |
|
|
|
rev = "v${version}"; |
|
|
|
sha256 = "sha256-nmVVK2lpz01hgSxPAMmBfF+nNVZu9PWRGzCWh/5yhj8="; |
|
|
|
sha256 = "sha256-hpIGsQBJCOyaEqopdES/hRXc2makIERonUju9D/HvgE="; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "doc" ]; |
|
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config file ]; |
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config file ]; |
|
|
|
buildInputs = [ libev nghttp3 quictls ] ++ lib.optional withJemalloc jemalloc; |
|
|
|
buildInputs = [ libev nghttp3 quictls ] ++ lib.optional withJemalloc jemalloc; |
|
|
|
checkInputs = [ cunit ncurses ]; |
|
|
|
checkInputs = [ cunit ncurses ]; |
|
|
@ -24,8 +26,6 @@ stdenv.mkDerivation rec { |
|
|
|
substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file |
|
|
|
substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file |
|
|
|
''; |
|
|
|
''; |
|
|
|
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
doCheck = true; |
|
|
|
doCheck = true; |
|
|
|
enableParallelBuilding = true; |
|
|
|
enableParallelBuilding = true; |
|
|
|
|
|
|
|
|
|
|
|