diff options
Diffstat (limited to 'pkgs/by-name/sk/skhd/package.nix')
-rw-r--r-- | pkgs/by-name/sk/skhd/package.nix | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/pkgs/by-name/sk/skhd/package.nix b/pkgs/by-name/sk/skhd/package.nix index d3b3b9adb96a..60321fae3557 100644 --- a/pkgs/by-name/sk/skhd/package.nix +++ b/pkgs/by-name/sk/skhd/package.nix @@ -1,18 +1,13 @@ { lib, - overrideSDK, stdenv, - darwin, fetchFromGitHub, - testers, + apple-sdk_11, + darwinMinVersionHook, nix-update-script, + versionCheckHook, }: -let - inherit (darwin.apple_sdk_11_0.frameworks) Carbon Cocoa; - - stdenv' = if stdenv.isDarwin then overrideSDK stdenv "11.0" else stdenv; -in -stdenv'.mkDerivation (finalAttrs: { +stdenv.mkDerivation (finalAttrs: { pname = "skhd"; version = "0.3.9"; @@ -24,8 +19,8 @@ stdenv'.mkDerivation (finalAttrs: { }; buildInputs = [ - Carbon - Cocoa + apple-sdk_11 + (darwinMinVersionHook "10.13") ]; makeFlags = [ "BUILD_PATH=$(out)/bin" ]; @@ -38,14 +33,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"; |