yabai: modernize

This commit is contained in:
Austin Horstman 2024-11-02 12:34:46 -05:00
parent b2607dee16
commit 550d4a2af4
No known key found for this signature in database

View File

@ -20,11 +20,6 @@ stdenv.mkDerivation (finalAttrs: {
finalAttrs.passthru.sources.${stdenv.hostPlatform.system}
or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
env = {
# silence service.h error
NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration";
};
nativeBuildInputs =
[ installShellFiles ]
++ lib.optionals stdenv.hostPlatform.isx86_64 [
@ -58,8 +53,7 @@ stdenv.mkDerivation (finalAttrs: {
# Since multilib doesn't work on darwin i dont know of a better way of handling this.
substituteInPlace makefile \
--replace-fail "-arch arm64e" "" \
--replace-fail "-arch arm64" "" \
--replace-fail "clang" "${stdenv.cc.targetPrefix}clang"
--replace-fail "-arch arm64" ""
'';
nativeInstallCheckInputs = [ versionCheckHook ];