nixpkgs/pkgs/os-specific/darwin/yabai/default.nix

33 lines
835 B
Nix
Raw Normal View History

2020-04-30 09:55:35 -07:00
{ stdenv, fetchFromGitHub, Carbon, Cocoa, ScriptingBridge }:
stdenv.mkDerivation rec {
pname = "yabai";
2020-06-14 03:24:38 -07:00
version = "3.2.0";
2020-04-30 09:55:35 -07:00
src = fetchFromGitHub {
owner = "koekeishiya";
repo = pname;
rev = "v${version}";
2020-06-14 03:24:38 -07:00
sha256 = "1iq5p4k6klffglxfhmzc2jvlilwn0w97vb5v4b91spiyp39nqcfw";
2020-04-30 09:55:35 -07:00
};
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
'';
2020-05-02 01:36:09 -07:00
homepage = "https://github.com/koekeishiya/yabai";
2020-04-30 09:55:35 -07:00
platforms = platforms.darwin;
2020-05-31 07:29:34 -07:00
maintainers = [ maintainers.cmacrae maintainers.shardy ];
2020-04-30 09:55:35 -07:00
license = licenses.mit;
};
}