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,13 +53,17 @@ rustPlatform.buildRustPackage {
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgram = "${placeholder "out"}/bin/komac";
passthru.tests.version = testers.testVersion {
passthru = {
tests.version = testers.testVersion {
inherit version;
package = komac;
command = "komac --version";
};
updateScript = nix-update-script { };
};
meta = {
description = "Community Manifest Creator for WinGet";
homepage = "https://github.com/russellbanks/Komac";