3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/darwin/yabai/default.nix

33 lines
838 B
Nix
Raw Normal View History

2020-06-29 15:06:55 +01:00
{ stdenv, fetchFromGitHub, Carbon, Cocoa, ScriptingBridge, xxd }:
2020-04-30 17:55:35 +01:00
stdenv.mkDerivation rec {
pname = "yabai";
2020-09-03 17:23:46 +01:00
version = "3.3.0";
2020-04-30 17:55:35 +01:00
src = fetchFromGitHub {
owner = "koekeishiya";
repo = pname;
rev = "v${version}";
2020-09-03 17:23:46 +01:00
sha256 = "0y4idivqkmi3xsc8yjdzh1b15qzgyqlw7ifs26v3dc91lkjhfc4x";
2020-04-30 17:55:35 +01:00
};
2020-06-29 15:06:55 +01:00
buildInputs = [ Carbon Cocoa ScriptingBridge xxd ];
2020-04-30 17:55:35 +01:00
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 09:36:09 +01:00
homepage = "https://github.com/koekeishiya/yabai";
2020-04-30 17:55:35 +01:00
platforms = platforms.darwin;
2020-06-29 15:06:55 +01:00
maintainers = with maintainers; [ cmacrae shardy ];
2020-04-30 17:55:35 +01:00
license = licenses.mit;
};
}