Merge pull request #288076 from tobim/pkgs/arrow-cpp-cleanups

arrow-cpp: various improvements

Fixes #284878
This commit is contained in:
Mario Rodas 2024-02-14 08:06:35 -05:00 committed by GitHub
commit b018a19eaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 32 additions and 13 deletions

@ -5,8 +5,19 @@
, fixDarwinDylibNames
, autoconf
, aws-sdk-cpp
, aws-sdk-cpp-arrow ? aws-sdk-cpp.override {
apis = [
"cognito-identity"
"config"
"identity-management"
"s3"
"sts"
"transfer"
];
}
, boost
, brotli
, bzip2
, c-ares
, cmake
, crc32c
@ -36,6 +47,7 @@
, which
, zlib
, zstd
, testers
, enableShared ? !stdenv.hostPlatform.isStatic
, enableFlight ? true
, enableJemalloc ? !stdenv.isDarwin
@ -64,17 +76,6 @@ let
hash = "sha256-CUckfNjfDW05crWigzMP5b9UynviXKGZUlIr754OoGU=";
};
aws-sdk-cpp-arrow = aws-sdk-cpp.override {
apis = [
"cognito-identity"
"config"
"identity-management"
"s3"
"sts"
"transfer"
];
};
in
stdenv.mkDerivation (finalAttrs: {
pname = "arrow-cpp";
@ -128,6 +129,7 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs = [
boost
brotli
bzip2
flatbuffers
gflags
glog
@ -187,6 +189,7 @@ stdenv.mkDerivation (finalAttrs: {
"-DARROW_USE_GLOG=ON"
"-DARROW_WITH_BACKTRACE=ON"
"-DARROW_WITH_BROTLI=ON"
"-DARROW_WITH_BZ2=ON"
"-DARROW_WITH_LZ4=ON"
"-DARROW_WITH_NLOHMANN_JSON=ON"
"-DARROW_WITH_SNAPPY=ON"
@ -247,6 +250,8 @@ stdenv.mkDerivation (finalAttrs: {
installCheckPhase =
let
disabledTests = [
# flaky
"arrow-flight-test"
# requires networking
"arrow-gcsfs-test"
"arrow-flight-integration-test"
@ -266,8 +271,24 @@ stdenv.mkDerivation (finalAttrs: {
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ tobim veprbl cpcloud ];
pkgConfigModules = [
"arrow"
"arrow-acero"
"arrow-compute"
"arrow-csv"
"arrow-dataset"
"arrow-filesystem"
"arrow-flight"
"arrow-flight-sql"
"arrow-flight-testing"
"arrow-json"
"arrow-substrait"
"arrow-testing"
"parquet"
];
};
passthru = {
inherit enableFlight enableJemalloc enableS3 enableGcs;
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
};
})

@ -20449,8 +20449,6 @@ with pkgs;
cudaPackages = cudaPackages_12;
};
arrow-cpp = callPackage ../development/libraries/arrow-cpp { };
arrow-glib = callPackage ../development/libraries/arrow-glib { };
arsenal = callPackage ../tools/security/arsenal { };