Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, rustPlatform
3, fetchFromGitHub
4, stdenv
5, darwin
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "datafusion-cli";
10 version = "22.0.0";
11
12 src = fetchFromGitHub {
13 name = "datafusion-cli-source";
14 owner = "apache";
15 repo = "arrow-datafusion";
16 rev = version;
17 sha256 = "sha256-TWvbtuLmAdYS8otD2TpVlZx2FJS6DF03U2zM28FNsfc=";
18 };
19
20 sourceRoot = "datafusion-cli-source/datafusion-cli";
21
22 cargoSha256 = "sha256-muWWVJDKm4rbpCK0SS7Zj6umFoMKGMScEAd2ZyZ5An8=";
23
24 buildInputs = lib.optionals stdenv.isDarwin [
25 darwin.apple_sdk.frameworks.Security
26 ];
27
28 checkFlags = [
29 # fails even outside the Nix sandbox
30 "--skip=object_storage::tests::s3_region_validation"
31 # broken
32 "--skip=exec::tests::create_object_store_table_gcs"
33 ];
34
35 meta = with lib; {
36 description = "cli for Apache Arrow DataFusion";
37 homepage = "https://arrow.apache.org/datafusion";
38 changelog = "https://github.com/apache/arrow-datafusion/blob/${version}/datafusion/CHANGELOG.md";
39 license = licenses.asl20;
40 maintainers = with maintainers; [ happysalada ];
41 };
42}