2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, Carbon }:
|
2018-03-05 18:29:35 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "skhd";
|
2020-05-02 09:58:41 +01:00
|
|
|
version = "0.3.5";
|
2018-03-05 18:29:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "koekeishiya";
|
2020-05-02 09:58:41 +01:00
|
|
|
repo = pname;
|
2018-03-05 18:29:35 +00:00
|
|
|
rev = "v${version}";
|
2020-05-02 09:58:41 +01:00
|
|
|
sha256 = "0x099979kgpim18r0vi9vd821qnv0rl3rkj0nd1nx3wljxgf7mrg";
|
2018-03-05 18:29:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ Carbon ];
|
|
|
|
|
|
|
|
makeFlags = [ "BUILD_PATH=$(out)/bin" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/Library/LaunchDaemons
|
|
|
|
cp ${./org.nixos.skhd.plist} $out/Library/LaunchDaemons/org.nixos.skhd.plist
|
|
|
|
substituteInPlace $out/Library/LaunchDaemons/org.nixos.skhd.plist --subst-var out
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-03-05 18:29:35 +00:00
|
|
|
description = "Simple hotkey daemon for macOS";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/koekeishiya/skhd";
|
2018-03-05 18:29:35 +00:00
|
|
|
platforms = platforms.darwin;
|
2020-05-02 09:58:41 +01:00
|
|
|
maintainers = with maintainers; [ cmacrae lnl7 periklis ];
|
2018-03-05 18:29:35 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|