591ccfe5b9
This continues whered8f7f6a5ce
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 tod8f7f6a5ce
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`).
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "datafusion-cli";
|
|
version = "22.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
name = "datafusion-cli-source";
|
|
owner = "apache";
|
|
repo = "arrow-datafusion";
|
|
rev = version;
|
|
sha256 = "sha256-TWvbtuLmAdYS8otD2TpVlZx2FJS6DF03U2zM28FNsfc=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/datafusion-cli";
|
|
|
|
cargoSha256 = "sha256-muWWVJDKm4rbpCK0SS7Zj6umFoMKGMScEAd2ZyZ5An8=";
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.Security
|
|
];
|
|
|
|
checkFlags = [
|
|
# fails even outside the Nix sandbox
|
|
"--skip=object_storage::tests::s3_region_validation"
|
|
# broken
|
|
"--skip=exec::tests::create_object_store_table_gcs"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "cli for Apache Arrow DataFusion";
|
|
homepage = "https://arrow.apache.org/datafusion";
|
|
changelog = "https://github.com/apache/arrow-datafusion/blob/${version}/datafusion/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ happysalada ];
|
|
};
|
|
}
|