depot/third_party/nixpkgs/pkgs/shells/nushell/plugins/query.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

35 lines
805 B
Nix

{ stdenv
, lib
, rustPlatform
, nushell
, nix-update-script
, IOKit
, CoreFoundation
}:
let
pname = "nushell_plugin_query";
in
rustPlatform.buildRustPackage {
inherit pname;
version = nushell.version;
src = nushell.src;
cargoHash = "sha256-tHTAz3/4EihdVGXAePCmcOUOjeaqjrY6fIESOGcCW/8=";
buildInputs = lib.optionals stdenv.isDarwin [ IOKit CoreFoundation ];
cargoBuildFlags = [ "--package nu_plugin_query" ];
# compilation fails with a missing symbol
doCheck = false;
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;
};
}