anchor.diff:  , zstd
   , enableShared ? !stdenv.hostPlatform.isStatic
   , enableFlight ? !stdenv.isDarwin # libnsl is not supported on darwin
  -, enableS3 ? true
  +  # boost/process is broken in 1.69 on darwin, but fixed in 1.70 and
  +  # non-existent in older versions
  +  # see https://github.com/boostorg/process/issues/55
  +, enableS3 ? (!stdenv.isDarwin) || (lib.versionOlder boost.version "1.69" || lib.versionAtLeast boost.version "1.70")
  +, enableGcs ? !stdenv.isDarwin # google-cloud-cpp is not supported on darwin
   }:
  +
  +assert lib.asserts.assertMsg
  +  ((enableS3 && stdenv.isDarwin) -> (lib.versionOlder boost.version "1.69" || lib.versionAtLeast boost.version "1.70"))
  +  "S3 on Darwin requires Boost != 1.69";
   
   let
     arrow-testing = fetchFromGitHub {
  
positive.code:     "-DPARQUET_BUILD_EXECUTABLES=ON"
      "-DARROW_FLIGHT=${if enableFlight then "ON" else "OFF"}"
      "-DARROW_S3=${if enableS3 then "ON" else "OFF"}"
    ] ++ lib.optionals (!enableShared) [
      "-DARROW_TEST_LINKAGE=static"
    ] ++ lib.optionals stdenv.isDarwin [
  
negative.code: , fetchurl
  , fetchFromGitHub
  , fixDarwinDylibNames
  , abseil-cpp
  , autoconf
  , aws-sdk-cpp
  , boost
  , brotli
  , c-ares
  , cmake
  , crc32c
  , curl
  , flatbuffers
  , gflags
  , glog
  , google-cloud-cpp
  , grpc
  , gtest
  , jemalloc
  , libnsl
  , lz4
  , minio
  , nlohmann_json
  , openssl
  , perl
  , protobuf
  