Skip to content

Commit

Permalink
sketchybar: use the new apple-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
azuwis committed Oct 31, 2024
1 parent 870ac82 commit cd3a083
Showing 1 changed file with 5 additions and 26 deletions.
31 changes: 5 additions & 26 deletions pkgs/by-name/sk/sketchybar/package.nix
Original file line number Diff line number Diff line change
@@ -1,37 +1,23 @@
{
lib,
overrideSDK,
stdenv,
darwin,
fetchFromGitHub,
apple-sdk_11,
darwinMinVersionHook,
testers,
nix-update-script,
}:

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

target =
{
"aarch64-darwin" = "arm64";
"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";

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

buildInputs = [
AppKit
Carbon
CoreAudio
CoreWLAN
CoreVideo
DisplayServices
IOKit
MediaRemote
SkyLight
apple-sdk_11
(darwinMinVersionHook "10.13")
];

makeFlags = [ target ];
Expand Down

0 comments on commit cd3a083

Please sign in to comment.