From 0341e3d535bd0856bd664bfcaa8f16824535d8ba Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Mon, 21 Mar 2022 11:14:40 -0500 Subject: [PATCH] lwan: indicate jemalloc should be used, or it won't be (cherry picked from commit d45a92fba512e8aeaf7bb904077ca8cd4ad988a8) --- pkgs/servers/http/lwan/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/servers/http/lwan/default.nix b/pkgs/servers/http/lwan/default.nix index 3e90857d8db8..7d6d34a6d2db 100644 --- a/pkgs/servers/http/lwan/default.nix +++ b/pkgs/servers/http/lwan/default.nix @@ -15,6 +15,9 @@ stdenv.mkDerivation rec { buildInputs = [ jemalloc zlib ]; + # Note: tcmalloc and mimalloc are also supported (and normal malloc) + cmakeFlags = [ "-DUSE_ALTERNATIVE_MALLOC=jemalloc" ]; + meta = with lib; { description = "Lightweight high-performance multi-threaded web server"; longDescription = "A lightweight and speedy web server with a low memory