From f0c63c539bf1fd7347e2e5bddec7e6e9da7cde1d Mon Sep 17 00:00:00 2001
From: strawberry <strawberry@puppygock.gay>
Date: Sun, 14 Jul 2024 00:11:37 -0400
Subject: [PATCH] nix: dont build more unnecessary tests/tools for rocksdb

Signed-off-by: strawberry <strawberry@puppygock.gay>
---
 flake.nix | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/flake.nix b/flake.nix
index e34aaad09..8ac5836f9 100644
--- a/flake.nix
+++ b/flake.nix
@@ -50,9 +50,18 @@
               "-DWITH_SNAPPY=1"
               # we dont need to use ldb or sst_dump (core_tools)
               "-DWITH_CORE_TOOLS=1"
+              # we dont need to build rocksdb tests
+              "-DWITH_TESTS=1"
             ]
             old.cmakeFlags
-            ++ [ "-DWITH_CORE_TOOLS=0" ];
+            ++ [
+              # we dont need to use ldb or sst_dump (core_tools)
+              "-DWITH_CORE_TOOLS=0"
+              # we dont need trace tools
+              "-DWITH_TRACE_TOOLS=0"
+              # we dont need to build rocksdb tests
+              "-DWITH_TESTS=0"
+            ];
 
           # outputs has "tools" which we dont need or use
           outputs = [ "out" ];
-- 
GitLab