commit 8fe3cfe222035d7ad47dda7ebb441f8880fc6f81
parent 78a2552c3d7197d9ae8962abec2102a94567ce3a
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 20 Mar 2022 18:05:25 +0100
parent 78a2552c3d7197d9ae8962abec2102a94567ce3a
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 20 Mar 2022 18:05:25 +0100
pkgs: add yabai
1 file changed, 20 insertions(+), 0 deletions(-)
diff --git a/pkgs/yabai.nix b/pkgs/yabai.nix @@ -0,0 +1,20 @@ +{ pkgs, stdenv, fetchurl, ... }: + +stdenv.mkDerivation rec { + pname = "yabai"; + version = "4.0.0"; + + src = fetchurl { + name = "yabai-${version}.tar.gz"; + url = "https://github.com/koekeishiya/yabai/releases/download/v${version}/yabai-v${version}.tar.gz"; + sha256 = "06yajpbg6pmzrwgm0ssk9ws49i89wxkjv99d6vs5cczqfvhhq8l3"; + }; + + 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 + ''; +}