anchor.diff:      # Disable Python for static mode because openblas is currently broken there.
       "-DARROW_PYTHON=${if enableShared then "ON" else "OFF"}"
       "-DARROW_USE_GLOG=ON"
  +    "-DARROW_WITH_BACKTRACE=ON"
       "-DARROW_WITH_BROTLI=ON"
       "-DARROW_WITH_LZ4=ON"
  +    "-DARROW_WITH_NLOHMANN_JSON=ON"
       "-DARROW_WITH_SNAPPY=ON"
       "-DARROW_WITH_UTF8PROC=ON"
       "-DARROW_WITH_ZLIB=ON"
  
positive.code:     "-DARROW_MIMALLOC=ON"
      # Parquet options:
      "-DARROW_PARQUET=ON"
      "-DPARQUET_BUILD_EXECUTABLES=ON"
      "-DARROW_FLIGHT=${if enableFlight then "ON" else "OFF"}"
      "-DARROW_S3=${if enableS3 then "ON" else "OFF"}"
      "-DARROW_GCS=${if enableGcs then "ON" else "OFF"}"
    ] ++ lib.optionals (!enableShared) [
  
negative.code:     "-DARROW_BUILD_SHARED=${if enableShared then "ON" else "OFF"}"
      "-DARROW_BUILD_STATIC=${if enableShared then "OFF" else "ON"}"
      "-DARROW_BUILD_TESTS=ON"
      "-DARROW_BUILD_INTEGRATION=ON"
      "-DARROW_BUILD_UTILITIES=ON"
      "-DARROW_EXTRA_ERROR_CONTEXT=ON"
      "-DARROW_VERBOSE_THIRDPARTY_BUILD=ON"
      "-DARROW_DEPENDENCY_SOURCE=SYSTEM"
      "-DThrift_SOURCE=AUTO" # search for Thrift using pkg-config (ThriftConfig.cmake requires OpenSSL and libevent)
  