nushellPlugins: fix update script

Because of inheriting the version attribute from nushell, we need to
tell the updater script to ignore the version and check the hash anyway.
This commit is contained in:
Aidan Gauland 2023-10-06 08:15:16 +13:00 committed by Yt
parent be2e62a36d
commit fa845cc3b6
3 changed files with 12 additions and 3 deletions

View File

@ -21,7 +21,10 @@ rustPlatform.buildRustPackage rec {
cargo test --manifest-path crates/nu_plugin_formats/Cargo.toml
'';
passthru.updateScript = nix-update-script { };
passthru.updateScript = nix-update-script {
# Skip the version check and only check the hash because we inherit version from nushell.
extraArgs = [ "--version=skip" ];
};
meta = with lib; {
description = "A formats plugin for Nushell";

View File

@ -21,7 +21,10 @@ rustPlatform.buildRustPackage rec {
cargo test --manifest-path crates/nu_plugin_gstat/Cargo.toml
'';
passthru.updateScript = nix-update-script { };
passthru.updateScript = nix-update-script {
# Skip the version check and only check the hash because we inherit version from nushell.
extraArgs = [ "--version=skip" ];
};
meta = with lib; {
description = "A git status plugin for Nushell";

View File

@ -19,7 +19,10 @@ rustPlatform.buildRustPackage {
cargo test --manifest-path crates/nu_plugin_query/Cargo.toml
'';
passthru.updateScript = nix-update-script { };
passthru.updateScript = nix-update-script {
# Skip the version check and only check the hash because we inherit version from nushell.
extraArgs = [ "--version=skip" ];
};
meta = with lib; {
description = "A Nushell plugin to query JSON, XML, and various web data";