rainfrog: add passthru.tests.version

This commit is contained in:
Kenichi Kamiya
2024-11-20 10:51:20 +09:00
parent 5261c3cda1
commit ad430b1b09
+13 -1
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}";