2020-05-03 17:38:23 +00:00
|
|
|
{ stdenv, fetchFromGitHub, Carbon, Cocoa, ScriptingBridge }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "yabai";
|
2020-05-15 21:57:56 +00:00
|
|
|
version = "3.0.1";
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "koekeishiya";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-05-15 21:57:56 +00:00
|
|
|
sha256 = "1m7hnrbwvahf174g6j5wjlcqa8zgd1fzqwrgnx9pma6pnh8q45lx";
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ Carbon Cocoa ScriptingBridge ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/share/man/man1/
|
|
|
|
cp ./bin/yabai $out/bin/yabai
|
|
|
|
cp ./doc/yabai.1 $out/share/man/man1/yabai.1
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = ''
|
|
|
|
A tiling window manager for macOS based on binary space partitioning
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/koekeishiya/yabai";
|
|
|
|
platforms = platforms.darwin;
|
|
|
|
maintainers = [ maintainers.cmacrae ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|