default.nix (914B)
1 { lib, stdenv, fetchFromGitHub, Carbon, Cocoa, SkyLight, ScriptingBridge, installShellFiles, xxd }: 2 3 stdenv.mkDerivation rec { 4 pname = "yabai"; 5 version = "3.3.10"; 6 7 src = fetchFromGitHub { 8 owner = "koekeishiya"; 9 repo = pname; 10 rev = "v${version}"; 11 hash = "sha256-8O6//T894C32Pba3F2Z84Z6VWeCXlwml3xsXoIZGqL0"; 12 }; 13 14 nativeBuildInputs = [ installShellFiles xxd ]; 15 16 buildInputs = [ Carbon Cocoa SkyLight ScriptingBridge ]; 17 18 postInstall = '' 19 install -Dm755 bin/yabai -t $out/bin 20 installManPage doc/yabai.1 21 ''; 22 23 meta = with lib; { 24 description = "A tiling window manager for macOS based on binary space partitioning"; 25 inherit (src.meta) homepage; 26 changelog = "${src.meta.homepage}/blob/v${version}/CHANGELOG.md"; 27 license = licenses.mit; 28 maintainers = [ maintainers.sikmir ]; 29 platforms = platforms.darwin; 30 skip.ci = true; # Failed on Big Sur (11) 31 }; 32 }