Skip to content

Commit b2607de

Browse files
committed
yabai: add versionCheckHook
1 parent 88eb0fc commit b2607de

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

pkgs/by-name/ya/yabai/package.nix

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
stdenv,
44
fetchFromGitHub,
55
fetchzip,
6-
installShellFiles,
7-
testers,
8-
writeShellScript,
6+
apple-sdk_15,
97
common-updater-scripts,
108
curl,
9+
installShellFiles,
1110
jq,
11+
versionCheckHook,
12+
writeShellScript,
1213
xxd,
13-
yabai,
14-
apple-sdk_15,
1514
}:
1615
stdenv.mkDerivation (finalAttrs: {
1716
pname = "yabai";
@@ -63,12 +62,11 @@ stdenv.mkDerivation (finalAttrs: {
6362
--replace-fail "clang" "${stdenv.cc.targetPrefix}clang"
6463
'';
6564

66-
passthru = {
67-
tests.version = testers.testVersion {
68-
package = yabai;
69-
version = "yabai-v${finalAttrs.version}";
70-
};
65+
nativeInstallCheckInputs = [ versionCheckHook ];
66+
versionCheckProgramArg = "--version";
67+
doInstallCheck = true;
7168

69+
passthru = {
7270
sources = {
7371
# Unfortunately compiling yabai from source on aarch64-darwin is a bit complicated. We use the precompiled binary instead for now.
7472
# See the comments on https://github.com/NixOS/nixpkgs/pull/188322 for more information.

0 commit comments

Comments
 (0)