nushellPlugins: normalise formatting across similar derivations

This commit is contained in:
Aidan Gauland 2023-09-12 10:43:05 +12:00 committed by Yt
parent eea9d62c0a
commit be2e62a36d
3 changed files with 9 additions and 4 deletions

View file

@ -12,13 +12,17 @@ rustPlatform.buildRustPackage rec {
pname = "nushell_plugin_formats";
inherit (nushell) version src;
cargoHash = "sha256-WS8VRpJnn/VWS7GUkGowFf51ifUx0SbEZzcoTfx2dp0=";
nativeBuildInputs = [ pkg-config ];
buildInputs = lib.optionals stdenv.isDarwin [ IOKit Foundation ];
cargoBuildFlags = [ "--package nu_plugin_formats" ];
checkPhase = ''
cargo test --manifest-path crates/nu_plugin_formats/Cargo.toml
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "A formats plugin for Nushell";
homepage = "https://github.com/nushell/nushell/tree/${version}/crates/nu_plugin_formats";

View file

@ -12,13 +12,17 @@ rustPlatform.buildRustPackage rec {
pname = "nushell_plugin_gstat";
inherit (nushell) version src;
cargoHash = "sha256-6luY3SIRRd9vaY9KIJcj8Q974FW0LtAvRjVpdpzkdLo=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
cargoBuildFlags = [ "--package nu_plugin_gstat" ];
checkPhase = ''
cargo test --manifest-path crates/nu_plugin_gstat/Cargo.toml
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "A git status plugin for Nushell";
homepage = "https://github.com/nushell/nushell/tree/${version}/crates/nu_plugin_gstat";

View file

@ -13,16 +13,13 @@ rustPlatform.buildRustPackage {
cargoHash = "sha256-xyty3GfI+zNkuHs7LYHBctqXUHZ4/MNNcnnfYvI18do=";
buildInputs = lib.optionals stdenv.isDarwin [ IOKit CoreFoundation ];
cargoBuildFlags = [ "--package nu_plugin_query" ];
checkPhase = ''
cargo test --manifest-path crates/nu_plugin_query/Cargo.toml
'';
passthru = {
updateScript = nix-update-script { };
};
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "A Nushell plugin to query JSON, XML, and various web data";