2022-12-17 20:40:13 +00:00
|
|
|
{ lib
|
2022-04-09 02:04:13 +01:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2022-12-17 20:40:13 +00:00
|
|
|
, stdenv
|
|
|
|
, darwin
|
2022-04-09 02:04:13 +01:00
|
|
|
}:
|
2022-12-17 20:40:13 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2022-04-09 02:04:13 +01:00
|
|
|
pname = "datafusion-cli";
|
2023-12-08 14:23:18 +00:00
|
|
|
version = "33.0.0";
|
2022-04-09 02:04:13 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-04-15 13:14:11 +01:00
|
|
|
name = "datafusion-cli-source";
|
2022-04-09 02:04:13 +01:00
|
|
|
owner = "apache";
|
|
|
|
repo = "arrow-datafusion";
|
2022-12-17 20:40:13 +00:00
|
|
|
rev = version;
|
2023-12-08 14:23:18 +00:00
|
|
|
sha256 = "sha256-ywyzvk50Fr9TSaCrqd14lSi1PJ9ggA1YQ/X0aFGFk1M=";
|
2022-04-09 02:04:13 +01:00
|
|
|
};
|
|
|
|
|
treewide: noop: refer to `src.name` or similar where appropriate, part 3: more use cases
This continues where d8f7f6a5cee067b81bfaaa3aa079adb94ed7c01e left off. Similarly
to that commit, this commit this also points `sourceRoot`s to `src.name` and similar
instead of keeping hardcoded names, and edits other derivation attrs do do the same,
where appropriate.
Also, similarly to d8f7f6a5cee067b81bfaaa3aa079adb94ed7c01e some of expressions this
edits use `srcs` attribute with customly-named sources, so they have to be moved
into `let` blocks to keep evaluation efficient (the other, worse, way to do this
would to recurcively refer to `elemAt n finalAttrs.srcs` or, similarly, with `rec`).
2023-08-08 18:18:01 +01:00
|
|
|
sourceRoot = "${src.name}/datafusion-cli";
|
2023-04-15 13:14:11 +01:00
|
|
|
|
2023-12-08 14:23:18 +00:00
|
|
|
cargoHash = "sha256-0a/O9nNi3JLufQxG+5EgCXtV0y03X7R6UY+f/tVGB90=";
|
2022-12-17 20:40:13 +00:00
|
|
|
|
2023-03-10 22:55:17 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
2022-12-17 20:40:13 +00:00
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
];
|
|
|
|
|
|
|
|
checkFlags = [
|
|
|
|
# fails even outside the Nix sandbox
|
|
|
|
"--skip=object_storage::tests::s3_region_validation"
|
2023-04-15 13:14:11 +01:00
|
|
|
# broken
|
|
|
|
"--skip=exec::tests::create_object_store_table_gcs"
|
2022-12-17 20:40:13 +00:00
|
|
|
];
|
2022-04-09 02:04:13 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "cli for Apache Arrow DataFusion";
|
|
|
|
homepage = "https://arrow.apache.org/datafusion";
|
2022-12-17 20:40:13 +00:00
|
|
|
changelog = "https://github.com/apache/arrow-datafusion/blob/${version}/datafusion/CHANGELOG.md";
|
2022-04-09 02:04:13 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
|
|
|
};
|
|
|
|
}
|