depot/third_party/nixpkgs/pkgs/os-specific/darwin/yabai/default.nix
Default email 9a250f78df Project import generated by Copybara.
GitOrigin-RevId: 8536aeb4154f5458994080bc4cf542695c144739
2020-05-03 19:38:23 +02:00

32 lines
816 B
Nix

{ stdenv, fetchFromGitHub, Carbon, Cocoa, ScriptingBridge }:
stdenv.mkDerivation rec {
pname = "yabai";
version = "3.0.0";
src = fetchFromGitHub {
owner = "koekeishiya";
repo = pname;
rev = "v${version}";
sha256 = "0ajsh85p2vx18h3s4nicasyhdbh82zg97b1ryhi6l5lkbjpdl4ah";
};
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;
};
}