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 bfe7a63
Showing 1 changed file with 3 additions and 26 deletions.
29 changes: 3 additions & 26 deletions pkgs/by-name/sk/sketchybar/package.nix
Original file line number Diff line number Diff line change
@@ -1,37 +1,22 @@
{
lib,
overrideSDK,
stdenv,
darwin,
fetchFromGitHub,
apple-sdk,
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 +28,7 @@ stdenv'.mkDerivation (finalAttrs: {
};

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

makeFlags = [ target ];
Expand Down

0 comments on commit bfe7a63

Please sign in to comment.