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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
901 B
Nix
Raw Normal View History

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