From 05befa4ba248f578643b46bd92450ade849b622c Mon Sep 17 00:00:00 2001 From: strawberry Date: Mon, 8 Jul 2024 17:08:11 -0400 Subject: [PATCH] nix: make enableLiburing in rocksdb conditional instead of default true for some reason enableLiburing in nixpkgs rocksdb is default true which breaks Darwin entirely 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 2897e675..e3d23a43 100644 --- a/nix/pkgs/main/default.nix +++ b/nix/pkgs/main/default.nix @@ -66,6 +66,10 @@ buildDepsOnlyEnv = # # [1]: https://github.com/tikv/jemallocator/blob/ab0676d77e81268cd09b059260c75b38dbef2d51/jemalloc-sys/src/env.rs#L17 enableJemalloc = featureEnabled "jemalloc" && !stdenv.isDarwin; + + # for some reason enableLiburing in nixpkgs rocksdb is default true + # which breaks Darwin entirely + enableLiburing = enableLiburing; }).overrideAttrs (old: { # TODO: static rocksdb fails to build on darwin # build log at