anchor.diff:      "-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)
  
positive.code:   ARROW_XSIMD_URL = fetchFromGitHub {
      owner = "xtensor-stack";
      repo = "xsimd";
      rev = "aeec9c872c8b475dedd7781336710f2dd2666cb2";
      hash = "sha256-vWKdJkieKhaxyAJhijXUmD7NmNvMWd79PskQojulA1w=";
    };
  
    patches = [
  
negative.code: in
  stdenv.mkDerivation rec {
    pname = "arrow-cpp";
    version = "8.0.0";
  
    src = fetchurl {
      url = "mirror://apache/arrow/arrow-${version}/apache-arrow-${version}.tar.gz";
      hash = "sha256-rZoFcFEXyYnBFrrprHBJL+AVBQ4bgPsOOP3ktdhjqqM=";
    };
    sourceRoot = "apache-arrow-${version}/cpp";
  
    ${if enableJemalloc then "ARROW_JEMALLOC_URL" else null} = jemalloc.src;
  
    # versions are all taken from
    # https://github.com/apache/arrow/blob/apache-arrow-8.0.0/cpp/thirdparty/versions.txt
  
    ARROW_MIMALLOC_URL = fetchFromGitHub {
      owner = "microsoft";
      repo = "mimalloc";
      rev = "v1.7.3";
  