mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
They are not doing anything right now. This is in preparation for their complete removal from the tree. Note: several changes that affect the derivation inputs (e.g. removal of references to stub paths in build instructions) were left out. They will be cleaned up the next iteration and will require special care. Note: this PR is a result of a mix of ugly regex (not AST) based automation and some manual labor. For reference, the regex automation part was hacked in: https://github.com/booxter/nix-clean-apple_sdk Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
42 lines
1.2 KiB
Nix
42 lines
1.2 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
rustPlatform,
|
|
openssl,
|
|
nushell,
|
|
pkg-config,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "nushell_plugin_polars";
|
|
inherit (nushell) version src;
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-8q/z0SmhTKsTlixze8Deej4rFsO4QyDce2OvIvE4AcY=";
|
|
|
|
nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ];
|
|
buildInputs = [ openssl ];
|
|
cargoBuildFlags = [ "--package nu_plugin_polars" ];
|
|
|
|
checkPhase = ''
|
|
# test failed without enough columns
|
|
cargo test --manifest-path crates/nu_plugin_polars/Cargo.toml -- \
|
|
--skip=dataframe::command::core::to_repr::test::test_examples
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
# Skip the version check and only check the hash because we inherit version from nushell.
|
|
extraArgs = [ "--version=skip" ];
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Nushell dataframe plugin commands based on polars";
|
|
mainProgram = "nu_plugin_polars";
|
|
homepage = "https://github.com/nushell/nushell/tree/${version}/crates/nu_plugin_polars";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ joaquintrinanes ];
|
|
platforms = with platforms; all;
|
|
};
|
|
}
|