nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 35 lines 1.0 kB view raw
1{ stdenv 2, lib 3, rustPlatform 4, fetchFromGitHub 5}: 6let 7 pname = "datafusion-cli"; 8 version = "unstable-2022-04-08"; 9in 10rustPlatform.buildRustPackage { 11 inherit pname version; 12 13 # TODO the crate has been yanked so not the best source 14 # the repo is a workspace with a lock inside a subdirectory, making 15 # compilation from github source not straightforward 16 # re-evaluate strategy on release after 7.0.0 17 src = fetchFromGitHub { 18 owner = "apache"; 19 repo = "arrow-datafusion"; 20 rev = "9cbde6d0e30fd29f59b0a16e309bdb0843cc7c64"; 21 sha256 = "sha256-XXd9jvWVivOBRS0PVOU9F4RQ6MrS/q78JF4S6Htd67w="; 22 }; 23 sourceRoot = "source/datafusion-cli"; 24 25 cargoSha256 = "sha256-Q0SjVofl1+sex15sSU9s7PgKeHG2b0gJPSqz7YZFOVs="; 26 27 meta = with lib; { 28 broken = stdenv.isDarwin; 29 description = "cli for Apache Arrow DataFusion"; 30 homepage = "https://arrow.apache.org/datafusion"; 31 license = licenses.asl20; 32 maintainers = with maintainers; [ happysalada ]; 33 platforms = platforms.unix; 34 }; 35}