autoraise: fix darwin (#355568)

This commit is contained in:
Austin Horstman 2024-11-13 09:01:59 -06:00 committed by GitHub
commit fe477b09a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,9 +2,8 @@
lib,
stdenv,
fetchFromGitHub,
darwin,
apple-sdk,
}:
stdenv.mkDerivation rec {
pname = "autoraise";
version = "5.3";
@ -16,13 +15,10 @@ stdenv.mkDerivation rec {
hash = "sha256-OsvmNHpQ46+cWkR4Nz/9oIgSFSWLfCwZnAnRKRiNm5E=";
};
buildInputs = with darwin.apple_sdk.frameworks; [
AppKit
SkyLight
buildInputs = [
apple-sdk.privateFrameworksHook
];
dontConfigure = true;
buildPhase = ''
runHook preBuild
$CXX -std=c++03 -fobjc-arc -D"NS_FORMAT_ARGUMENT(A)=" -D"SKYLIGHT_AVAILABLE=1" -o AutoRaise AutoRaise.mm -framework AppKit -framework SkyLight