Unverified Commit 5919e1b2 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

typos: add passthru.tests.version and updateScript (#354982)

parents 9b0c876b 8bc11315
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2,6 +2,9 @@
  lib,
  rustPlatform,
  fetchFromGitHub,
  testers,
  nix-update-script,
  typos,
}:

rustPlatform.buildRustPackage rec {
@@ -17,6 +20,12 @@ rustPlatform.buildRustPackage rec {

  cargoHash = "sha256-cn1jy8kQ6R+JU6w/sqcNP+uzSKKg3V4H97qnJAIESd0=";

  passthru = {
    tests.version = testers.testVersion { package = typos; };

    updateScript = nix-update-script { };
  };

  meta = with lib; {
    description = "Source code spell checker";
    mainProgram = "typos";