arrow-cpp: fix pkgsStatic

This commit is contained in:
Phillip Cloud 2024-10-31 07:19:04 -04:00
parent 982f812ae9
commit cb2ef38a11
No known key found for this signature in database
GPG Key ID: D908212070FD785E

View File

@ -35,6 +35,7 @@
nlohmann_json,
openssl,
perl,
pkg-config,
protobuf,
python3,
rapidjson,
@ -49,7 +50,7 @@
zstd,
testers,
enableShared ? !stdenv.hostPlatform.isStatic,
enableFlight ? true,
enableFlight ? stdenv.buildPlatform == stdenv.hostPlatform,
enableJemalloc ? !stdenv.hostPlatform.isDarwin,
enableS3 ? true,
enableGcs ? !stdenv.hostPlatform.isDarwin,
@ -126,6 +127,7 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [
cmake
pkg-config
ninja
autoconf # for vendored jemalloc
flatbuffers
@ -180,7 +182,7 @@ stdenv.mkDerivation (finalAttrs: {
"-DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON"
"-DARROW_BUILD_SHARED=${if enableShared then "ON" else "OFF"}"
"-DARROW_BUILD_STATIC=${if enableShared then "OFF" else "ON"}"
"-DARROW_BUILD_TESTS=ON"
"-DARROW_BUILD_TESTS=${if enableShared then "ON" else "OFF"}"
"-DARROW_BUILD_INTEGRATION=ON"
"-DARROW_BUILD_UTILITIES=ON"
"-DARROW_EXTRA_ERROR_CONTEXT=ON"