From 3d1507e6dd4d9064e858b960777cec67f97989b7 Mon Sep 17 00:00:00 2001 From: Benjamin Lee Date: Thu, 23 May 2024 20:12:50 -0700 Subject: [PATCH] mark static rocksdb broken on darwin --- nix/pkgs/main/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nix/pkgs/main/default.nix b/nix/pkgs/main/default.nix index c7161697..758ed60f 100644 --- a/nix/pkgs/main/default.nix +++ b/nix/pkgs/main/default.nix @@ -57,7 +57,7 @@ rust-jemalloc-sys' = (rust-jemalloc-sys.override { buildDepsOnlyEnv = let - rocksdb' = rocksdb.override { + rocksdb' = (rocksdb.override { jemalloc = rust-jemalloc-sys'; # rocksdb fails to build with prefixed jemalloc, which is required on # darwin due to [1]. In this case, fall back to building rocksdb with @@ -66,7 +66,11 @@ buildDepsOnlyEnv = # # [1]: https://github.com/tikv/jemallocator/blob/ab0676d77e81268cd09b059260c75b38dbef2d51/jemalloc-sys/src/env.rs#L17 enableJemalloc = featureEnabled "jemalloc" && !stdenv.isDarwin; - }; + }).overrideAttrs (old: { + # TODO: static rocksdb fails to build on darwin + # build log at + meta.broken = stdenv.hostPlatform.isStatic && stdenv.isDarwin; + }); in { CARGO_PROFILE = profile;