Skip to content

Commit

Permalink
fastfetch: switch to apple-sdk_11
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Oct 31, 2024
1 parent b59b333 commit 25e94a0
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions pkgs/by-name/fa/fastfetch/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
fetchFromGitHub,
chafa,
cmake,
darwin,
dbus,
dconf,
ddcutil,
Expand All @@ -23,7 +22,6 @@
nix-update-script,
ocl-icd,
opencl-headers,
overrideSDK,
pcre,
pcre2,
pkg-config,
Expand All @@ -42,11 +40,9 @@
vulkanSupport ? true,
waylandSupport ? true,
x11Support ? true,
apple-sdk_11,
}:
let
stdenv' = if stdenv.hostPlatform.isDarwin then overrideSDK stdenv "11.0" else stdenv;
in
stdenv'.mkDerivation (finalAttrs: {
stdenv.mkDerivation (finalAttrs: {
pname = "fastfetch";
version = "2.28.0";

Expand Down Expand Up @@ -105,24 +101,10 @@ stdenv'.mkDerivation (finalAttrs: {
xorg.libXext
]
++ lib.optionals (x11Support && (!stdenv.hostPlatform.isDarwin)) [ xfce.xfconf ]
++ lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk_11_0.frameworks;
[
Apple80211
AppKit
AVFoundation
Cocoa
CoreDisplay
CoreVideo
CoreWLAN
DisplayServices
IOBluetooth
MediaRemote
OpenCL
SystemConfiguration
moltenvk
]
);
++ lib.optionals stdenv.hostPlatform.isDarwin ([
apple-sdk_11
moltenvk
]);

cmakeFlags =
[
Expand Down

0 comments on commit 25e94a0

Please sign in to comment.