diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2021-11-21 20:54:50 -0500 |
---|---|---|
committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2021-11-26 00:26:37 -0500 |
commit | e3e77ee8a4c116d781273d0b189eaf24046ea4f0 (patch) | |
tree | 15510ea225036684c4e8a115ea7645ea296a958d /pkgs/development/libraries/arrow-cpp | |
parent | 9fff252dcf573a265bcdac81cfa482fa0b862a7b (diff) | |
download | nixpkgs-e3e77ee8a4c116d781273d0b189eaf24046ea4f0.tar nixpkgs-e3e77ee8a4c116d781273d0b189eaf24046ea4f0.tar.gz nixpkgs-e3e77ee8a4c116d781273d0b189eaf24046ea4f0.tar.bz2 nixpkgs-e3e77ee8a4c116d781273d0b189eaf24046ea4f0.tar.lz nixpkgs-e3e77ee8a4c116d781273d0b189eaf24046ea4f0.tar.xz nixpkgs-e3e77ee8a4c116d781273d0b189eaf24046ea4f0.tar.zst nixpkgs-e3e77ee8a4c116d781273d0b189eaf24046ea4f0.zip |
arrow-cpp: build without jemalloc on aarch64-darwin to fix build
Diffstat (limited to 'pkgs/development/libraries/arrow-cpp')
-rw-r--r-- | pkgs/development/libraries/arrow-cpp/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/arrow-cpp/default.nix b/pkgs/development/libraries/arrow-cpp/default.nix index bcf4aeb2ddc..574ba3b1250 100644 --- a/pkgs/development/libraries/arrow-cpp/default.nix +++ b/pkgs/development/libraries/arrow-cpp/default.nix @@ -38,6 +38,7 @@ , zstd , enableShared ? !stdenv.hostPlatform.isStatic , enableFlight ? !stdenv.isDarwin # libnsl is not supported on darwin +, enableJemalloc ? !(stdenv.isAarch64 && stdenv.isDarwin) # boost/process is broken in 1.69 on darwin, but fixed in 1.70 and # non-existent in older versions # see https://github.com/boostorg/process/issues/55 @@ -76,7 +77,7 @@ stdenv.mkDerivation rec { }; sourceRoot = "apache-arrow-${version}/cpp"; - ARROW_JEMALLOC_URL = jemalloc.src; + ${if enableJemalloc then "ARROW_JEMALLOC_URL" else null} = jemalloc.src; ARROW_MIMALLOC_URL = fetchFromGitHub { # From @@ -155,6 +156,7 @@ stdenv.mkDerivation rec { "-DARROW_COMPUTE=ON" "-DARROW_CSV=ON" "-DARROW_DATASET=ON" + "-DARROW_JEMALLOC=${if enableJemalloc then "ON" else "OFF"}" "-DARROW_JSON=ON" "-DARROW_PLASMA=ON" # Disable Python for static mode because openblas is currently broken there. |