anchor.diff:      "-DCMAKE_INSTALL_RPATH=@loader_path/../lib" # needed for tools executables
     ] ++ lib.optional (!stdenv.isx86_64) "-DARROW_USE_SIMD=OFF";
   
  -  ARROW_XSIMD_URL = xsimd.src;
  +  ARROW_XSIMD_URL = fetchurl {
  +    url = "https://github.com/xtensor-stack/xsimd/archive/aeec9c872c8b475dedd7781336710f2dd2666cb2.tar.gz";
  +    sha256 = "09kvl962c6b0wnb7pb2n9dhvkflzwalgq6gwwi8628fgi9n1x10a";
  +  };
   
     doInstallCheck = true;
     ARROW_TEST_DATA =
  
positive.code:   arrow-testing = fetchFromGitHub {
      owner = "apache";
      repo = "arrow-testing";
      rev = "6d98243093c0b36442da94de7010f3eacc2a9909";
      hash = "sha256-n57Fuz2k6sX1o3vYBmC41eRKGnyt9+YL5r3WTHHRRzw=";
    };
  
    parquet-testing = fetchFromGitHub {
      owner = "apache";
      repo = "parquet-testing";
      rev = "ddd898958803cb89b7156c6350584d1cda0fe8de";
      hash = "sha256-gK04mj1Fuhkf82NDMrXplFa+cr/3Ij7I9VnYfinuJlg=";
    };
  
  in stdenv.mkDerivation rec {
    pname = "arrow-cpp";
    version = "5.0.0";
  
    src = fetchurl {
      url =
        "mirror://apache/arrow/arrow-${version}/apache-arrow-${version}.tar.gz";
      hash = "sha256-w7QxPspZTCD3Yag2cZchqvB2AAGviWuuw6tkQg/5kQo=";
    };
    sourceRoot = "apache-arrow-${version}/cpp";
  
  
negative.code:   '';
  
    meta = with lib; {
      description = "A cross-language development platform for in-memory data";
      homepage = "https://arrow.apache.org/";
      license = licenses.asl20;
      platforms = platforms.unix;
      maintainers = with maintainers; [ tobim veprbl cpcloud ];
    };
  }
  