Commit fa845cc3 authored by Aidan Gauland's avatar Aidan Gauland Committed by Yt
Browse files

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.
parent be2e62a3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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";
+4 −1
Original line number Diff line number Diff line
@@ -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";
+4 −1
Original line number Diff line number Diff line
@@ -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";