yabai: refactor to new sdk pattern
This commit is contained in:
parent
b59b333bb3
commit
4457d955d0
@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
overrideSDK,
|
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
fetchzip,
|
fetchzip,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
@ -9,23 +8,12 @@
|
|||||||
writeShellScript,
|
writeShellScript,
|
||||||
common-updater-scripts,
|
common-updater-scripts,
|
||||||
curl,
|
curl,
|
||||||
darwin,
|
|
||||||
jq,
|
jq,
|
||||||
xcodebuild,
|
|
||||||
xxd,
|
xxd,
|
||||||
yabai,
|
yabai,
|
||||||
|
apple-sdk_11,
|
||||||
}:
|
}:
|
||||||
let
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
inherit (darwin.apple_sdk_11_0.frameworks)
|
|
||||||
Carbon
|
|
||||||
Cocoa
|
|
||||||
ScriptingBridge
|
|
||||||
SkyLight
|
|
||||||
;
|
|
||||||
|
|
||||||
stdenv' = if stdenv.hostPlatform.isDarwin then overrideSDK stdenv "11.0" else stdenv;
|
|
||||||
in
|
|
||||||
stdenv'.mkDerivation (finalAttrs: {
|
|
||||||
pname = "yabai";
|
pname = "yabai";
|
||||||
version = "7.1.4";
|
version = "7.1.4";
|
||||||
|
|
||||||
@ -41,15 +29,11 @@ stdenv'.mkDerivation (finalAttrs: {
|
|||||||
nativeBuildInputs =
|
nativeBuildInputs =
|
||||||
[ installShellFiles ]
|
[ installShellFiles ]
|
||||||
++ lib.optionals stdenv.hostPlatform.isx86_64 [
|
++ lib.optionals stdenv.hostPlatform.isx86_64 [
|
||||||
xcodebuild
|
|
||||||
xxd
|
xxd
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.hostPlatform.isx86_64 [
|
buildInputs = lib.optionals stdenv.hostPlatform.isx86_64 [
|
||||||
Carbon
|
apple-sdk_11
|
||||||
Cocoa
|
|
||||||
ScriptingBridge
|
|
||||||
SkyLight
|
|
||||||
];
|
];
|
||||||
|
|
||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user