anchor.diff:      "-DARROW_PARQUET=ON"
       "-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 [
       "-DCMAKE_SKIP_BUILD_RPATH=OFF" # needed for tests
       "-DCMAKE_INSTALL_RPATH=@loader_path/../lib" # needed for tools executables
  -  ] ++ lib.optional (!stdenv.isx86_64) "-DARROW_USE_SIMD=OFF";
  +  ] ++ lib.optional (!stdenv.isx86_64) "-DARROW_USE_SIMD=OFF"
  +  ++ lib.optional enableS3 "-DAWSSDK_CORE_HEADER_FILE=${aws-sdk-cpp}/include/aws/core/Aws.h";
   
     doInstallCheck = true;
     ARROW_TEST_DATA = lib.optionalString doInstallCheck "${arrow-testing}/data";
  
positive.code: , jemalloc
  , libnsl
  , lz4
  , openssl
  , perl
  , protobuf
  
negative.code:     libnsl
      openssl
      protobuf
    ] ++ lib.optionals enableS3 [ aws-sdk-cpp openssl ];
  
    preConfigure = ''
      patchShebangs build-support/
  