anchor.diff:      "-DARROW_MIMALLOC=ON"
       # Parquet options:
       "-DARROW_PARQUET=ON"
  +    "-DARROW_SUBSTRAIT=ON"
       "-DPARQUET_BUILD_EXECUTABLES=ON"
       "-DARROW_FLIGHT=${if enableFlight then "ON" else "OFF"}"
  +    "-DARROW_FLIGHT_TESTING=${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) [
  
positive.code:     gflags
      glog
      gtest
      lz4
      rapidjson
      re2
      snappy
  
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)
  