diff --git a/pkgs/by-name/au/autoraise/package.nix b/pkgs/by-name/au/autoraise/package.nix index 4a1b0623cb3b..9f0f1a19aa86 100644 --- a/pkgs/by-name/au/autoraise/package.nix +++ b/pkgs/by-name/au/autoraise/package.nix @@ -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