Skip to content

Commit

Permalink
fastfetch: switch to apple-sdk_15 (#352623)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored Nov 3, 2024
2 parents f3ff80d + 8e829c0 commit 779a848
Showing 1 changed file with 12 additions and 33 deletions.
45 changes: 12 additions & 33 deletions pkgs/by-name/fa/fastfetch/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
lib,
stdenv,
fetchFromGitHub,
apple-sdk_15,
chafa,
cmake,
darwin,
dbus,
dconf,
ddcutil,
Expand All @@ -23,15 +23,14 @@
nix-update-script,
ocl-icd,
opencl-headers,
overrideSDK,
pcre,
pcre2,
pkg-config,
python3,
rpm,
sqlite,
testers,
util-linux,
versionCheckHook,
vulkan-loader,
wayland,
xfce,
Expand All @@ -43,10 +42,7 @@
waylandSupport ? true,
x11Support ? true,
}:
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_15
moltenvk
]);

cmakeFlags =
[
Expand Down Expand Up @@ -158,14 +140,11 @@ stdenv'.mkDerivation (finalAttrs: {
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath finalAttrs.buildInputs}"
'';

passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
command = "fastfetch -v | cut -d '(' -f 1";
version = "fastfetch ${finalAttrs.version}";
};
};
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;

passthru.updateScript = nix-update-script { };

meta = {
description = "An actively maintained, feature-rich and performance oriented, neofetch like system information tool";
Expand Down

0 comments on commit 779a848

Please sign in to comment.