rainfrog: add passthru.tests.version

This commit is contained in:
Kenichi Kamiya 2024-11-20 10:42:30 +09:00
parent 5261c3cda1
commit ad430b1b09
No known key found for this signature in database
GPG Key ID: 9BE4016A38165CCB

View File

@ -2,9 +2,11 @@
lib,
darwin,
fetchFromGitHub,
testers,
nix-update-script,
rustPlatform,
stdenv,
rainfrog,
}:
let
version = "0.2.9";
@ -31,7 +33,17 @@ rustPlatform.buildRustPackage {
]
);
passthru.updateScript = nix-update-script { };
passthru = {
tests.version = testers.testVersion {
package = rainfrog;
command = ''
RAINFROG_DATA="$(mktemp -d)" rainfrog --version
'';
};
updateScript = nix-update-script { };
};
meta = {
changelog = "https://github.com/achristmascarl/rainfrog/releases/tag/v${version}";