Skip to content

Commit

Permalink
kanata: add a version check using versionCheckHook (#347822)
Browse files Browse the repository at this point in the history
  • Loading branch information
r-vdp authored Oct 11, 2024
2 parents a63eff4 + 0eabd56 commit fdab9ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/tools/system/kanata/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
, fetchFromGitHub
, jq
, moreutils
, versionCheckHook
, nix-update-script
, withCmd ? false
}:
Expand Down Expand Up @@ -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 { };
};
Expand Down

0 comments on commit fdab9ff

Please sign in to comment.