2018-03-05 18:29:35 +00:00
|
|
|
{ stdenv, fetchFromGitHub, Carbon }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "skhd";
|
2018-12-05 04:15:51 +00:00
|
|
|
version = "0.3.0";
|
2018-03-05 18:29:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "koekeishiya";
|
|
|
|
repo = "skhd";
|
|
|
|
rev = "v${version}";
|
2018-12-05 04:15:51 +00:00
|
|
|
sha256 = "13pqnassmzppy2ipv995rh8lzw9rraxvi0ph6zgy63cbsdfzbhgl";
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Simple hotkey daemon for macOS";
|
|
|
|
homepage = https://github.com/koekeishiya/skhd;
|
|
|
|
platforms = platforms.darwin;
|
2018-07-21 15:15:29 +01:00
|
|
|
maintainers = with maintainers; [ lnl7 periklis ];
|
2018-03-05 18:29:35 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|