2021-12-06 16:07:01 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, darwin, xxd }:
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "yabai";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "3.3.10";
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "koekeishiya";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-8O6//T894C32Pba3F2Z84Z6VWeCXlwml3xsXoIZGqL0=";
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [ xxd ];
|
|
|
|
|
|
|
|
buildInputs = with darwin.apple_sdk.frameworks; [
|
|
|
|
Carbon
|
|
|
|
Cocoa
|
|
|
|
ScriptingBridge
|
|
|
|
SkyLight
|
|
|
|
];
|
2020-05-03 17:38:23 +00: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
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-05-03 17:38:23 +00:00
|
|
|
description = ''
|
|
|
|
A tiling window manager for macOS based on binary space partitioning
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/koekeishiya/yabai";
|
|
|
|
platforms = platforms.darwin;
|
2020-07-18 16:06:22 +00:00
|
|
|
maintainers = with maintainers; [ cmacrae shardy ];
|
2020-05-03 17:38:23 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|