depot/third_party/nixpkgs/pkgs/os-specific/darwin/yabai/default.nix
Default email 510ba8c3d9 Project import generated by Copybara.
GitOrigin-RevId: 069f183f16c3ea5d4b6e7625433b92eba77534f7
2020-11-15 05:44:38 -08:00

32 lines
838 B
Nix

{ stdenv, fetchFromGitHub, Carbon, Cocoa, ScriptingBridge, xxd }:
stdenv.mkDerivation rec {
pname = "yabai";
version = "3.3.3";
src = fetchFromGitHub {
owner = "koekeishiya";
repo = pname;
rev = "v${version}";
sha256 = "0rxl0in3rhmrgg3v3l91amr497x37i2w1jqm52k0jb9my1sk67rs";
};
buildInputs = [ Carbon Cocoa ScriptingBridge xxd ];
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 = with maintainers; [ cmacrae shardy ];
license = licenses.mit;
};
}