2023-04-12 12:48:02 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, rustPlatform
|
|
|
|
, nushell
|
|
|
|
, IOKit
|
|
|
|
, CoreFoundation
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage {
|
2023-05-24 13:37:59 +00:00
|
|
|
pname = "nushell_plugin_query";
|
|
|
|
version = "0.80.0";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
src = nushell.src;
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
cargoHash = "sha256-k4UjHNf5L9RmYuB66gcoyCmhd1MvtAxTOxRh24sv0sk=";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|