rainfrog: add passthru.tests.version
This commit is contained in:
parent
5261c3cda1
commit
ad430b1b09
@ -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}";
|
||||
|
Loading…
Reference in New Issue
Block a user