ngtcp2: make jemalloc optional and disable by default

This commit is contained in:
midchildan 2022-02-04 03:12:40 +09:00
parent 0f3cd7f888
commit db694ca48b
No known key found for this signature in database
GPG key ID: A64DE57FA5963935

View file

@ -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 = ''