2022-12-28 21:21:41 +00:00
|
|
|
{ lib
|
2022-04-15 01:41:22 +00:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2022-12-28 21:21:41 +00:00
|
|
|
, stdenv
|
|
|
|
, darwin
|
2022-04-15 01:41:22 +00:00
|
|
|
}:
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2022-04-15 01:41:22 +00:00
|
|
|
pname = "datafusion-cli";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "22.0.0";
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-04-29 16:46:19 +00:00
|
|
|
name = "datafusion-cli-source";
|
2022-04-15 01:41:22 +00:00
|
|
|
owner = "apache";
|
|
|
|
repo = "arrow-datafusion";
|
2022-12-28 21:21:41 +00:00
|
|
|
rev = version;
|
2023-04-29 16:46:19 +00:00
|
|
|
sha256 = "sha256-TWvbtuLmAdYS8otD2TpVlZx2FJS6DF03U2zM28FNsfc=";
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
sourceRoot = "${src.name}/datafusion-cli";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
cargoSha256 = "sha256-muWWVJDKm4rbpCK0SS7Zj6umFoMKGMScEAd2ZyZ5An8=";
|
2022-12-28 21:21:41 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
2022-12-28 21:21:41 +00:00
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
];
|
|
|
|
|
|
|
|
checkFlags = [
|
|
|
|
# fails even outside the Nix sandbox
|
|
|
|
"--skip=object_storage::tests::s3_region_validation"
|
2023-04-29 16:46:19 +00:00
|
|
|
# broken
|
|
|
|
"--skip=exec::tests::create_object_store_table_gcs"
|
2022-12-28 21:21:41 +00:00
|
|
|
];
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "cli for Apache Arrow DataFusion";
|
|
|
|
homepage = "https://arrow.apache.org/datafusion";
|
2022-12-28 21:21:41 +00:00
|
|
|
changelog = "https://github.com/apache/arrow-datafusion/blob/${version}/datafusion/CHANGELOG.md";
|
2022-04-15 01:41:22 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
|
|
|
};
|
|
|
|
}
|