11{ stdenv , lib , fetchurl , fetchFromGitHub , fetchpatch , fixDarwinDylibNames , autoconf , boost
22, brotli , cmake , flatbuffers , gflags , glog , gtest , lz4 , perl
3- , python , rapidjson , snappy , thrift , which , zlib , zstd
3+ , python3 , rapidjson , snappy , thrift , which , zlib , zstd
44, enableShared ? true } :
55
66let
77 parquet-testing = fetchFromGitHub {
88 owner = "apache" ;
99 repo = "parquet-testing" ;
10- rev = "46c9e977f58f6c5ef1b81f782f3746b3656e5a8c " ;
11- sha256 = "1z2s6zh58nf484s0yraw7b1aqgx66dn2wzp1bzv9ndq03msklwly " ;
10+ rev = "bcd9ebcf9204a346df47204fe21b85c8d0498816 " ;
11+ sha256 = "0m16pqzbvxiaradq088q5ai6fwnz9srbap996397znwppvva479b " ;
1212 } ;
1313
1414in stdenv . mkDerivation rec {
1515 pname = "arrow-cpp" ;
16- version = "0.16 .0" ;
16+ version = "0.17 .0" ;
1717
1818 src = fetchurl {
1919 url =
2020 "mirror://apache/arrow/arrow-${ version } /apache-arrow-${ version } .tar.gz" ;
21- sha256 = "1xdp1yni9i1cpml326s78qql1g832m800h7zjlqmk89983g94696 " ;
21+ sha256 = "0vcfprf176jlmw6wsy6vyc49fiffyjk37rhl098sv2pqw71v8iic " ;
2222 } ;
2323
2424 sourceRoot = "apache-arrow-${ version } /cpp" ;
@@ -28,19 +28,18 @@ in stdenv.mkDerivation rec {
2828 # ./cpp/cmake_modules/ThirdpartyToolchain.cmake
2929 # ./cpp/thirdparty/versions.txt
3030 url =
31- "https://github.com/jemalloc/jemalloc/releases/download/5.2.0 /jemalloc-5.2.0 .tar.bz2" ;
32- sha256 = "1d73a5c5qdrwck0fa5pxz0myizaf3s9alsvhiqwrjahdlr29zgkl " ;
31+ "https://github.com/jemalloc/jemalloc/releases/download/5.2.1 /jemalloc-5.2.1 .tar.bz2" ;
32+ sha256 = "1xl7z0vwbn5iycg7amka9jd6hxd8nmfk7nahi4p9w2bnw9f0wcrl " ;
3333 } ;
3434
3535 patches = [
3636 # patch to fix python-test
3737 ./darwin.patch
38- # Adjust CMake target names to make -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON work.
39- # Remove this when updating to the next version.
38+
39+ # fix musl build
4040 ( fetchpatch {
41- name = "arrow-use-upstream-cmake-target-names.patch" ;
42- url = "https://github.com/apache/arrow/commit/396861b38d2f4e805db7c2ecd2c96fff0ca2678b.patch" ;
43- sha256 = "0ki7nx858374anvwyi4szz5hgnnzv4fghdd05c38bzry9rfljgb1" ;
41+ url = "https://github.com/apache/arrow/commit/de4168786dfd8ab932f48801e0a7a6b8a370c19d.diff" ;
42+ sha256 = "1nl4y1rwdl0gn67v7l05ibc4lwkn6x7fhwbmslmm08cqmwfjsx3y" ;
4443 stripLen = 1 ;
4544 } )
4645 ] ++ lib . optionals ( ! enableShared ) [
@@ -66,8 +65,9 @@ in stdenv.mkDerivation rec {
6665 thrift
6766 zlib
6867 zstd
69- python . pkgs . python
70- python . pkgs . numpy
68+ ] ++ lib . optionals enableShared [
69+ python3 . pkgs . python
70+ python3 . pkgs . numpy
7171 ] ;
7272
7373 preConfigure = ''
@@ -92,8 +92,6 @@ in stdenv.mkDerivation rec {
9292 # Parquet options:
9393 "-DARROW_PARQUET=ON"
9494 "-DPARQUET_BUILD_EXECUTABLES=ON"
95- "-DTHRIFT_COMPILER=${ thrift } /bin/thrift"
96- "-DTHRIFT_VERSION=${ thrift . version } "
9795 ] ++ lib . optionals ( ! enableShared ) [
9896 "-DARROW_BUILD_SHARED=OFF"
9997 "-DARROW_BOOST_USE_SHARED=OFF"
0 commit comments