From db694ca48b118f1835e333b88bcc51317682e768 Mon Sep 17 00:00:00 2001 From: midchildan Date: Fri, 4 Feb 2022 03:12:40 +0900 Subject: [PATCH] ngtcp2: make jemalloc optional and disable by default --- pkgs/development/libraries/ngtcp2/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/ngtcp2/default.nix b/pkgs/development/libraries/ngtcp2/default.nix index 78d73f51e17..650516d360c 100644 --- a/pkgs/development/libraries/ngtcp2/default.nix +++ b/pkgs/development/libraries/ngtcp2/default.nix @@ -1,7 +1,8 @@ { lib, stdenv, fetchFromGitHub , autoreconfHook, pkg-config , cunit, file, ncurses -, jemalloc, libev, nghttp3, quictls +, libev, nghttp3, quictls +, withJemalloc ? false, jemalloc }: stdenv.mkDerivation rec { @@ -16,7 +17,7 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ autoreconfHook pkg-config file ]; - buildInputs = [ jemalloc libev nghttp3 quictls ]; + buildInputs = [ libev nghttp3 quictls ] ++ lib.optional withJemalloc jemalloc; checkInputs = [ cunit ncurses ]; preConfigure = ''