Unverified Commit c5c0a362 authored by Emily's avatar Emily Committed by GitHub
Browse files

sketchybar: switch to apple-sdk_15 (#352620)

parents 8c2d2158 52ba81f6
Loading
Loading
Loading
Loading
+8 −33
Original line number Diff line number Diff line
{
  lib,
  overrideSDK,
  stdenv,
  darwin,
  fetchFromGitHub,
  testers,
  nix-update-script,
  apple-sdk_15,
  versionCheckHook,
}:

let
  inherit (stdenv.hostPlatform) system;
  inherit (darwin.apple_sdk_11_0.frameworks)
    AppKit
    Carbon
    CoreAudio
    CoreWLAN
    CoreVideo
    DisplayServices
    IOKit
    MediaRemote
    SkyLight
    ;

  target =
    {
@@ -28,10 +16,8 @@ let
      "x86_64-darwin" = "x86";
    }
    .${system} or (throw "Unsupported system: ${system}");

  stdenv' = if stdenv.hostPlatform.isDarwin then overrideSDK stdenv "11.0" else stdenv;
in
stdenv'.mkDerivation (finalAttrs: {
stdenv.mkDerivation (finalAttrs: {
  pname = "sketchybar";
  version = "2.21.0";

@@ -43,15 +29,7 @@ stdenv'.mkDerivation (finalAttrs: {
  };

  buildInputs = [
    AppKit
    Carbon
    CoreAudio
    CoreWLAN
    CoreVideo
    DisplayServices
    IOKit
    MediaRemote
    SkyLight
    apple-sdk_15
  ];

  makeFlags = [ target ];
@@ -65,14 +43,11 @@ stdenv'.mkDerivation (finalAttrs: {
    runHook postInstall
  '';

  passthru = {
    tests.version = testers.testVersion {
      package = finalAttrs.finalPackage;
      version = "sketchybar-v${finalAttrs.version}";
    };
  passthru.updateScript = nix-update-script { };

    updateScript = nix-update-script { };
  };
  nativeInstallCheckInputs = [ versionCheckHook ];
  versionCheckProgramArg = "--version";
  doInstallCheck = true;

  meta = {
    description = "Highly customizable macOS status bar replacement";