rainfrog: add passthru.tests.version (#357443)

This commit is contained in:
Aleksana 2024-11-29 16:23:52 +08:00 committed by GitHub
commit a9464b38c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,9 +2,11 @@
lib,
darwin,
fetchFromGitHub,
testers,
nix-update-script,
rustPlatform,
stdenv,
rainfrog,
}:
let
version = "0.2.10";
@ -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}";