From 1f983dbc47767a90b62f4e64fae6284d8b75a3ab Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Sun, 10 Nov 2024 22:05:47 +0900 Subject: [PATCH] typos: add passthru.tests.version typos: avoid multi-line style typos: simplify version test with the default values Co-authored-by: Pol Dellaiera Co-authored-by: Isabel --- pkgs/by-name/ty/typos/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/ty/typos/package.nix b/pkgs/by-name/ty/typos/package.nix index 69daacd13866..03c593cdbe44 100644 --- a/pkgs/by-name/ty/typos/package.nix +++ b/pkgs/by-name/ty/typos/package.nix @@ -2,6 +2,8 @@ lib, rustPlatform, fetchFromGitHub, + testers, + typos, }: rustPlatform.buildRustPackage rec { @@ -17,6 +19,10 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-WuYAE2msctMf+7C1h5pNGyjrEInnT6PxfZ94bZhzB5w="; + passthru = { + tests.version = testers.testVersion { package = typos; }; + }; + meta = with lib; { description = "Source code spell checker"; mainProgram = "typos";