ngtcp2: make jemalloc optional and disable by default
This commit is contained in:
parent
0f3cd7f888
commit
db694ca48b
|
@ -1,7 +1,8 @@
|
||||||
{ lib, stdenv, fetchFromGitHub
|
{ lib, stdenv, fetchFromGitHub
|
||||||
, autoreconfHook, pkg-config
|
, autoreconfHook, pkg-config
|
||||||
, cunit, file, ncurses
|
, cunit, file, ncurses
|
||||||
, jemalloc, libev, nghttp3, quictls
|
, libev, nghttp3, quictls
|
||||||
|
, withJemalloc ? false, jemalloc
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -16,7 +17,7 @@ stdenv.mkDerivation rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkg-config file ];
|
nativeBuildInputs = [ autoreconfHook pkg-config file ];
|
||||||
buildInputs = [ jemalloc libev nghttp3 quictls ];
|
buildInputs = [ libev nghttp3 quictls ] ++ lib.optional withJemalloc jemalloc;
|
||||||
checkInputs = [ cunit ncurses ];
|
checkInputs = [ cunit ncurses ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
|
|
Loading…
Reference in a new issue