kanata: add a version check using versionCheckHook

This commit is contained in:
Lin Jian 2024-10-11 08:33:02 +08:00
parent 9eb1419a50
commit 0eabd560ce
No known key found for this signature in database
GPG Key ID: A6698D36434F75A5

View File

@ -5,6 +5,7 @@
, fetchFromGitHub
, jq
, moreutils
, versionCheckHook
, nix-update-script
, withCmd ? false
}:
@ -51,6 +52,11 @@ rustPlatform.buildRustPackage rec {
install -Dm 444 assets/kanata-icon.svg $out/share/icons/hicolor/scalable/apps/kanata.svg
'';
doInstallCheck = true;
nativeInstallCheckInputs = [
versionCheckHook
];
passthru = {
updateScript = nix-update-script { };
};