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