typos: add passthru.tests.version

typos: avoid multi-line style
typos: simplify version test with the default values

Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
Co-authored-by: Isabel <isabel@isabelroses.com>
This commit is contained in:
Kenichi Kamiya 2024-11-10 22:05:47 +09:00
parent 8213a8a557
commit 1f983dbc47
No known key found for this signature in database
GPG Key ID: 9BE4016A38165CCB

View File

@ -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";