2020-06-29 15:06:55 +01:00
|
|
|
{ stdenv, fetchFromGitHub, Carbon, Cocoa, ScriptingBridge, xxd }:
|
2020-04-30 17:55:35 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "yabai";
|
2020-06-29 15:06:55 +01:00
|
|
|
version = "3.2.1";
|
2020-04-30 17:55:35 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "koekeishiya";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-06-29 15:06:55 +01:00
|
|
|
sha256 = "11rsi6z2z7ynfqs1xq3bvf187k5xnwm0d45a8ai9hrqdsf3f1j19";
|
2020-04-30 17:55:35 +01:00
|
|
|
};
|
|
|
|
|
2020-06-29 15:06:55 +01:00
|
|
|
buildInputs = [ Carbon Cocoa ScriptingBridge xxd ];
|
2020-04-30 17:55:35 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
2020-05-02 09:36:09 +01:00
|
|
|
homepage = "https://github.com/koekeishiya/yabai";
|
2020-04-30 17:55:35 +01:00
|
|
|
platforms = platforms.darwin;
|
2020-06-29 15:06:55 +01:00
|
|
|
maintainers = with maintainers; [ cmacrae shardy ];
|
2020-04-30 17:55:35 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|