autoraise: fix darwin

Private frameworks need to be injected through a new hook. This requires
configuration for the hook to be activated.
This commit is contained in:
Austin Horstman 2024-11-12 19:12:52 -06:00
parent 77467888ce
commit 9ce28cbd7e
No known key found for this signature in database

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