Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 36 lines 998 B view raw
1{ 2 stdenv, 3 lib, 4 rustPlatform, 5 openssl, 6 nushell, 7 pkg-config, 8 nix-update-script, 9}: 10 11rustPlatform.buildRustPackage (finalAttrs: { 12 pname = "nu_plugin_polars"; 13 inherit (nushell) version src cargoHash; 14 15 nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ]; 16 buildInputs = [ openssl ]; 17 18 buildAndTestSubdir = "crates/nu_plugin_polars"; 19 20 checkFlags = [ 21 "--skip=dataframe::command::core::to_repr::test::test_examples" 22 ]; 23 24 passthru.updateScript = nix-update-script { 25 # Skip the version check and only check the hash because we inherit version from nushell. 26 extraArgs = [ "--version=skip" ]; 27 }; 28 29 meta = { 30 description = "Nushell dataframe plugin commands based on polars"; 31 mainProgram = "nu_plugin_polars"; 32 homepage = "https://github.com/nushell/nushell/tree/${finalAttrs.version}/crates/nu_plugin_polars"; 33 license = lib.licenses.mit; 34 maintainers = with lib.maintainers; [ joaquintrinanes ]; 35 }; 36})