From 4840d81fc6e2b1554223777e4a490b6db8e5a6cc Mon Sep 17 00:00:00 2001 From: HuangYi Date: Fri, 8 Nov 2024 15:07:33 +0800 Subject: [PATCH] Problem: fail to import rocksdb on linux Solution: - disable jemalloc --- rocksdb.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rocksdb.nix b/rocksdb.nix index 32e1e07..951acb0 100644 --- a/rocksdb.nix +++ b/rocksdb.nix @@ -11,9 +11,8 @@ zlib, zstd, windows, - # only enable jemalloc for non-windows platforms - # see: https://github.com/NixOS/nixpkgs/issues/216479 - enableJemalloc ? !stdenv.hostPlatform.isWindows && !stdenv.hostPlatform.isStatic, + # don't enable jemalloc, error on linux: https://github.com/NixOS/nixpkgs/issues/315628 + enableJemalloc ? false, jemalloc, enableShared ? !stdenv.hostPlatform.isStatic, sse42Support ? stdenv.hostPlatform.sse4_2Support,