mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
33 lines
835 B
Nix
33 lines
835 B
Nix
{ stdenv, fetchFromGitHub, Carbon, Cocoa, ScriptingBridge }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "yabai";
|
|
version = "3.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "koekeishiya";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "16y719384f9bx8zwfsjk5v2nyjyf43m154idsfzxpx0bbl8w5bpj";
|
|
};
|
|
|
|
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 maintainers.shardy ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|