Skip to content

Commit

Permalink
skhd: add versionCheckHook
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Nov 1, 2024
1 parent 50bc98e commit 81502fd
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions pkgs/by-name/sk/skhd/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
lib,
stdenv,
fetchFromGitHub,
testers,
nix-update-script,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "skhd";
Expand All @@ -26,14 +26,11 @@ stdenv.mkDerivation (finalAttrs: {
substituteInPlace $out/Library/LaunchDaemons/org.nixos.skhd.plist --subst-var out
'';

passthru = {
tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
version = "skhd-v${finalAttrs.version}";
};
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;

updateScript = nix-update-script { };
};
passthru.updateScript = nix-update-script { };

meta = {
description = "Simple hotkey daemon for macOS";
Expand Down

0 comments on commit 81502fd

Please sign in to comment.