anchor.diff:      "-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) [
       "-DARROW_TEST_LINKAGE=static"
     ] ++ lib.optionals stdenv.isDarwin [
  
positive.code:         "TestS3FS.OpenOutputStreamMetadata"
          "TestS3FS.OpenOutputStreamSyncWrites"
          "TestS3FSGeneric.*"
        ];
      in
      lib.optionalString doInstallCheck "-${builtins.concatStringsSep ":" filteredTests}";
  
negative.code: , zstd
  , enableShared ? !stdenv.hostPlatform.isStatic
  , enableFlight ? !stdenv.isDarwin # libnsl is not supported on darwin
    # 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 {
  