diff --git a/pkgs/shells/nushell/plugins/formats.nix b/pkgs/shells/nushell/plugins/formats.nix index 9268b191e37..2009e911e40 100644 --- a/pkgs/shells/nushell/plugins/formats.nix +++ b/pkgs/shells/nushell/plugins/formats.nix @@ -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"; diff --git a/pkgs/shells/nushell/plugins/gstat.nix b/pkgs/shells/nushell/plugins/gstat.nix index f4dad721559..6b687817fb2 100644 --- a/pkgs/shells/nushell/plugins/gstat.nix +++ b/pkgs/shells/nushell/plugins/gstat.nix @@ -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"; diff --git a/pkgs/shells/nushell/plugins/query.nix b/pkgs/shells/nushell/plugins/query.nix index 8db55ad5e89..4f96247bafc 100644 --- a/pkgs/shells/nushell/plugins/query.nix +++ b/pkgs/shells/nushell/plugins/query.nix @@ -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";