depot/third_party/nixpkgs/pkgs/shells/nushell/plugins/query.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

36 lines
837 B
Nix

{ stdenv
, lib
, rustPlatform
, nushell
, IOKit
, CoreFoundation
, nix-update-script
}:
rustPlatform.buildRustPackage {
pname = "nushell_plugin_query";
version = "0.82.0";
src = nushell.src;
cargoHash = "sha256-j0FI6Ed8YVIpJ4MBDl6h9qfnolMlPJeoY0Q/qfbGTBA=";
buildInputs = lib.optionals stdenv.isDarwin [ IOKit CoreFoundation ];
cargoBuildFlags = [ "--package nu_plugin_query" ];
# compilation fails with a missing symbol
doCheck = false;
passthru = {
updateScript = nix-update-script { };
};
meta = with lib; {
description = "A Nushell plugin to query JSON, XML, and various web data";
homepage = "https://github.com/nushell/nushell/tree/main/crates/nu_plugin_query";
license = licenses.mpl20;
maintainers = with maintainers; [ happysalada ];
platforms = with platforms; all;
};
}