anchor.diff:  , 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
  
positive.code: , zstd
  , enableShared ? !stdenv.hostPlatform.isStatic
  , enableFlight ? !stdenv.isDarwin # libnsl is not supported on darwin
  , enableS3 ? true
  }:
  
  let
    arrow-testing = fetchFromGitHub {
  
negative.code:     libnsl
      openssl
      protobuf
    ] ++ lib.optionals enableS3 [ aws-sdk-cpp openssl ]
    ++ lib.optionals enableGcs [
      abseil-cpp
      crc32c
      curl
      google-cloud-cpp
      nlohmann_json
    ];
  
    preConfigure = ''
      patchShebangs build-support/
  