depot/third_party/nixpkgs/pkgs/os-specific/darwin/skhd/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

31 lines
840 B
Nix

{ stdenv, fetchFromGitHub, Carbon }:
stdenv.mkDerivation rec {
pname = "skhd";
version = "0.3.0";
src = fetchFromGitHub {
owner = "koekeishiya";
repo = "skhd";
rev = "v${version}";
sha256 = "13pqnassmzppy2ipv995rh8lzw9rraxvi0ph6zgy63cbsdfzbhgl";
};
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;
maintainers = with maintainers; [ lnl7 periklis ];
license = licenses.mit;
};
}