From 463fa4fd536c2c53663edb3338424a8c95e6b34b Mon Sep 17 00:00:00 2001 From: strawberry Date: Wed, 17 Jul 2024 22:38:34 -0400 Subject: [PATCH] nix: dont build unnecessary jemalloc docs or cxx integration Signed-off-by: strawberry --- nix/pkgs/main/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix/pkgs/main/default.nix b/nix/pkgs/main/default.nix index 629957c8..5f21176e 100644 --- a/nix/pkgs/main/default.nix +++ b/nix/pkgs/main/default.nix @@ -51,6 +51,10 @@ rust-jemalloc-sys' = (rust-jemalloc-sys.override { unprefixed = true; }).overrideAttrs (old: { configureFlags = old.configureFlags ++ + # we dont need docs + [ "--disable-doc" ] ++ + # we dont need cxx/C++ integration + [ "--disable-cxx" ] ++ # tikv-jemalloc-sys/profiling feature lib.optional (featureEnabled "jemalloc_prof") "--enable-prof"; });