Unverified Commit 9ce28cbd authored by Austin Horstman's avatar Austin Horstman
Browse files

autoraise: fix darwin

Private frameworks need to be injected through a new hook. This requires
configuration for the hook to be activated.
parent 77467888
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -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