File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 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} :
1615stdenv . 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.
You can’t perform that action at this time.
0 commit comments