depot/third_party/nixpkgs/pkgs/os-specific/darwin/yabai/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

39 lines
901 B
Nix

{ lib, stdenv, fetchFromGitHub, darwin, xxd }:
stdenv.mkDerivation rec {
pname = "yabai";
version = "3.3.10";
src = fetchFromGitHub {
owner = "koekeishiya";
repo = pname;
rev = "v${version}";
sha256 = "sha256-8O6//T894C32Pba3F2Z84Z6VWeCXlwml3xsXoIZGqL0=";
};
nativeBuildInputs = [ xxd ];
buildInputs = with darwin.apple_sdk.frameworks; [
Carbon
Cocoa
ScriptingBridge
SkyLight
];
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 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;
};
}