commit
de72df3675
|
@ -1,19 +1,29 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, Carbon }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, Carbon
|
||||||
|
, Cocoa
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "skhd";
|
pname = "skhd";
|
||||||
version = "0.3.5";
|
version = "0.3.9";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "koekeishiya";
|
owner = "koekeishiya";
|
||||||
repo = pname;
|
repo = "skhd";
|
||||||
rev = "v${version}";
|
rev = "v${finalAttrs.version}";
|
||||||
sha256 = "0x099979kgpim18r0vi9vd821qnv0rl3rkj0nd1nx3wljxgf7mrg";
|
hash = "sha256-fnkWws/g4BdHKDRhqoCpdPFUavOHdk8R7h7H1dAdAYI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ Carbon ];
|
buildInputs = [
|
||||||
|
Carbon
|
||||||
|
Cocoa
|
||||||
|
];
|
||||||
|
|
||||||
makeFlags = [ "BUILD_PATH=$(out)/bin" ];
|
makeFlags = [
|
||||||
|
"BUILD_PATH=$(out)/bin"
|
||||||
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/Library/LaunchDaemons
|
mkdir -p $out/Library/LaunchDaemons
|
||||||
|
@ -21,11 +31,11 @@ stdenv.mkDerivation rec {
|
||||||
substituteInPlace $out/Library/LaunchDaemons/org.nixos.skhd.plist --subst-var out
|
substituteInPlace $out/Library/LaunchDaemons/org.nixos.skhd.plist --subst-var out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Simple hotkey daemon for macOS";
|
description = "Simple hotkey daemon for macOS";
|
||||||
homepage = "https://github.com/koekeishiya/skhd";
|
homepage = "https://github.com/koekeishiya/skhd";
|
||||||
platforms = platforms.darwin;
|
license = lib.licenses.mit;
|
||||||
maintainers = with maintainers; [ cmacrae lnl7 periklis ];
|
maintainers = with lib.maintainers; [ cmacrae lnl7 periklis khaneliman];
|
||||||
license = licenses.mit;
|
platforms = lib.platforms.darwin;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
|
@ -3944,8 +3944,8 @@ with pkgs;
|
||||||
|
|
||||||
reattach-to-user-namespace = callPackage ../os-specific/darwin/reattach-to-user-namespace { };
|
reattach-to-user-namespace = callPackage ../os-specific/darwin/reattach-to-user-namespace { };
|
||||||
|
|
||||||
skhd = callPackage ../os-specific/darwin/skhd {
|
skhd = darwin.apple_sdk_11_0.callPackage ../os-specific/darwin/skhd {
|
||||||
inherit (darwin.apple_sdk.frameworks) Carbon;
|
inherit (darwin.apple_sdk_11_0.frameworks) Carbon Cocoa;
|
||||||
};
|
};
|
||||||
|
|
||||||
qes = callPackage ../os-specific/darwin/qes {
|
qes = callPackage ../os-specific/darwin/qes {
|
||||||
|
|
Loading…
Reference in a new issue