Skip to content

Commit

Permalink
yabai: use versionCheckHook
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Nov 1, 2024
1 parent 5158440 commit 98bd1e8
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions pkgs/by-name/ya/yabai/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
lib,
fetchFromGitHub,
installShellFiles,
testers,
xcbuild,
xxd,
yabai,
apple-sdk_15,
darwinMinVersionHook,
llvmPackages_19,
nix-update-script,
versionCheckHook,
}:
let
inherit (llvmPackages_19) stdenv;
Expand Down Expand Up @@ -61,14 +60,11 @@ stdenv.mkDerivation (finalAttrs: {
--replace-fail "clang" "${stdenv.cc.targetPrefix}clang"
'';

passthru = {
tests.version = testers.testVersion {
package = yabai;
version = "yabai-v${finalAttrs.version}";
};
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;

updateScript = nix-update-script { };
};
passthru.updateScript = nix-update-script { };

meta = {
description = "Tiling window manager for macOS based on binary space partitioning";
Expand Down

0 comments on commit 98bd1e8

Please sign in to comment.