diff options
author | Aidan Gauland <aidalgol@fastmail.net> | 2023-10-06 08:15:16 +1300 |
---|---|---|
committer | Yt <happysalada@tuta.io> | 2023-10-05 21:32:21 +0000 |
commit | fa845cc3b6966c7c14d5d83d3b9e29120e8cf06f (patch) | |
tree | e6586848a29dba2905b7d90686fd58b35da7ef75 /pkgs/shells/nushell | |
parent | be2e62a36d5e5d40e8f836e0ff04f8f10d070998 (diff) |
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.
Diffstat (limited to 'pkgs/shells/nushell')
-rw-r--r-- | pkgs/shells/nushell/plugins/formats.nix | 5 | ||||
-rw-r--r-- | pkgs/shells/nushell/plugins/gstat.nix | 5 | ||||
-rw-r--r-- | pkgs/shells/nushell/plugins/query.nix | 5 |
3 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/shells/nushell/plugins/formats.nix b/pkgs/shells/nushell/plugins/formats.nix index 2009e911e405e..5f75951b8c955 100644 --- a/pkgs/shells/nushell/plugins/formats.nix +++ b/pkgs/shells/nushell/plugins/formats.nix @@ -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"; diff --git a/pkgs/shells/nushell/plugins/gstat.nix b/pkgs/shells/nushell/plugins/gstat.nix index 6b687817fb25b..bf788098a5eb9 100644 --- a/pkgs/shells/nushell/plugins/gstat.nix +++ b/pkgs/shells/nushell/plugins/gstat.nix @@ -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"; diff --git a/pkgs/shells/nushell/plugins/query.nix b/pkgs/shells/nushell/plugins/query.nix index 4f96247bafc31..25097a5d6297b 100644 --- a/pkgs/shells/nushell/plugins/query.nix +++ b/pkgs/shells/nushell/plugins/query.nix @@ -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"; |