komac: add updateScript

This commit is contained in:
Heitor Augusto 2024-10-15 17:34:37 -03:00
parent 91abcc0446
commit 96562536ca
No known key found for this signature in database

View File

@ -11,6 +11,7 @@
dbus,
zstd,
versionCheckHook,
nix-update-script,
}:
let
@ -52,11 +53,15 @@ rustPlatform.buildRustPackage {
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgram = "${placeholder "out"}/bin/komac";
passthru.tests.version = testers.testVersion {
inherit version;
passthru = {
tests.version = testers.testVersion {
inherit version;
package = komac;
command = "komac --version";
package = komac;
command = "komac --version";
};
updateScript = nix-update-script { };
};
meta = {