4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
32 lines
836 B
Nix
32 lines
836 B
Nix
{ lib, stdenv, fetchFromGitHub, Carbon, Cocoa, ScriptingBridge, xxd }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "yabai";
|
|
version = "3.3.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "koekeishiya";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1pvyjdxgy7yxxz4x87f8an0dlxvxbnmv5kya8hkzw2na453ihvab";
|
|
};
|
|
|
|
buildInputs = [ Carbon Cocoa ScriptingBridge xxd ];
|
|
|
|
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; {
|
|
description = ''
|
|
A tiling window manager for macOS based on binary space partitioning
|
|
'';
|
|
homepage = "https://github.com/koekeishiya/yabai";
|
|
platforms = platforms.darwin;
|
|
maintainers = with maintainers; [ cmacrae shardy ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|