From fa845cc3b6966c7c14d5d83d3b9e29120e8cf06f Mon Sep 17 00:00:00 2001 From: Aidan Gauland Date: Fri, 6 Oct 2023 08:15:16 +1300 Subject: [PATCH] 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. --- pkgs/shells/nushell/plugins/formats.nix | 5 ++++- pkgs/shells/nushell/plugins/gstat.nix | 5 ++++- 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 2009e911e405..5f75951b8c95 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 6b687817fb25..bf788098a5eb 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 4f96247bafc3..25097a5d6297 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";