10 stdenv.mkDerivation (finalAttrs: {
14 src = fetchFromGitHub {
15 owner = "koekeishiya";
17 rev = "v${finalAttrs.version}";
18 hash = "sha256-fnkWws/g4BdHKDRhqoCpdPFUavOHdk8R7h7H1dAdAYI=";
23 (darwinMinVersionHook "10.13")
26 makeFlags = [ "BUILD_PATH=$(out)/bin" ];
28 env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
31 mkdir -p $out/Library/LaunchDaemons
32 cp ${./org.nixos.skhd.plist} $out/Library/LaunchDaemons/org.nixos.skhd.plist
33 substituteInPlace $out/Library/LaunchDaemons/org.nixos.skhd.plist --subst-var out
36 nativeInstallCheckInputs = [ versionCheckHook ];
37 versionCheckProgramArg = "--version";
38 doInstallCheck = true;
40 passthru.updateScript = nix-update-script { };
43 description = "Simple hotkey daemon for macOS";
44 homepage = "https://github.com/koekeishiya/skhd";
45 license = lib.licenses.mit;
47 maintainers = with lib.maintainers; [
53 platforms = lib.platforms.darwin;