Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sketchybar: use the new apple-sdk #352647

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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