anchor.diff:      cmake
       autoconf # for vendored jemalloc
       flatbuffers
  -  ] ++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
  +  ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
     buildInputs = [
       boost
       brotli
  
positive.code:   patches = [
      # patch to fix python-test
      ./darwin.patch
    ] ++ stdenv.lib.optionals (!enableShared) [
      # The shared jemalloc lib is unused and breaks in static mode due to missing -fpic.
      ./jemalloc-disable-shared.patch
    ];
  
negative.code: { stdenv, lib, fetchurl, fetchFromGitHub, fixDarwinDylibNames, autoconf, boost
  , brotli, cmake, double-conversion, flatbuffers, gflags, glog, gtest, lz4, perl
  , python, rapidjson, snappy, thrift, uriparser, which, zlib, zstd
  , enableShared ? true }:
  