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

40 lines
901 B
Nix
Raw Normal View History

2021-12-05 18:15:43 +00:00
{ lib, stdenv, fetchFromGitHub, darwin, xxd }:
2020-04-30 16:55:35 +00:00
stdenv.mkDerivation rec {
pname = "yabai";
2021-12-05 18:15:43 +00:00
version = "3.3.10";
2020-04-30 16:55:35 +00:00
src = fetchFromGitHub {
owner = "koekeishiya";
repo = pname;
rev = "v${version}";
2021-12-05 18:15:43 +00:00
sha256 = "sha256-8O6//T894C32Pba3F2Z84Z6VWeCXlwml3xsXoIZGqL0=";
2020-04-30 16:55:35 +00:00
};
2021-12-05 18:15:43 +00:00
nativeBuildInputs = [ xxd ];
buildInputs = with darwin.apple_sdk.frameworks; [
Carbon
Cocoa
ScriptingBridge
SkyLight
];
2020-04-30 16:55:35 +00: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 lib; {
2020-04-30 16:55:35 +00:00
description = ''
A tiling window manager for macOS based on binary space partitioning
'';
2020-05-02 08:36:09 +00:00
homepage = "https://github.com/koekeishiya/yabai";
2020-04-30 16:55:35 +00:00
platforms = platforms.darwin;
2020-06-29 14:06:55 +00:00
maintainers = with maintainers; [ cmacrae shardy ];
2020-04-30 16:55:35 +00:00
license = licenses.mit;
};
}