mago: use versionCheckHook

This commit is contained in:
Pol Dellaiera
2025-09-15 11:04:22 +02:00
parent e66f3eb102
commit 14789e1eac
+4 -9
View File
@@ -4,8 +4,7 @@
fetchFromGitHub,
pkg-config,
openssl,
testers,
mago,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@@ -30,13 +29,9 @@ rustPlatform.buildRustPackage (finalAttrs: {
buildInputs = [ openssl ];
passthru = {
tests.version = testers.testVersion {
package = mago;
command = "mago --version";
version = "mago ${version}";
};
};
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
meta = {
changelog = "https://github.com/carthage-software/mago/releases/tag/${finalAttrs.version}";