stats: 2.12.7 -> 3.0.3

This commit is contained in:
FlameFlag
2026-06-08 13:45:03 +03:00
parent 2fc7270138
commit fc4dd33f62
+11 -10
View File
@@ -24,6 +24,7 @@ let
"Bluetooth"
"Sensors"
"Clock"
"Remote"
];
modules = lib.tail frameworks;
@@ -53,7 +54,7 @@ let
# CFBundleVersion is extracted from upstream's Info.plist at build time
Description = "Simple macOS system monitor in your menu bar";
LSApplicationCategoryType = "public.app-category.utilities";
LSMinimumSystemVersion = "11.0";
LSMinimumSystemVersion = "12.0";
LSUIElement = true;
NSAppTransportSecurity = {
NSAllowsArbitraryLoads = true;
@@ -67,13 +68,16 @@ let
in
stdenv.mkDerivation (finalAttrs: {
pname = "stats";
version = "2.12.7";
version = "3.0.3";
__structuredAttrs = true;
strictDeps = true;
src = fetchFromGitHub {
owner = "exelban";
repo = "Stats";
tag = "v${finalAttrs.version}";
hash = "sha256-qx4FI+MnFknIrTOPP+8wyy1wqFMWyaunmags023ay6A=";
hash = "sha256-HYuS0mFzzln+EjYUmQgjCPFsF4aGP+4QWalDL0vt3OA=";
};
nativeBuildInputs = [
@@ -204,7 +208,7 @@ stdenv.mkDerivation (finalAttrs: {
buildFramework CPU "Modules/CPU/bridge.h" \
-lKit -framework IOKit
buildFramework GPU "" \
buildFramework GPU "Modules/GPU/bridge.h" \
-lKit -framework IOKit -framework Metal
buildFramework RAM "" \
@@ -258,6 +262,9 @@ stdenv.mkDerivation (finalAttrs: {
buildFramework Clock "" \
-lKit
buildFramework Remote "" \
-lKit
echo "=== Building Stats app ==="
statsSwiftFiles=()
@@ -312,12 +319,6 @@ stdenv.mkDerivation (finalAttrs: {
--app-icon AppIcon \
"Stats/Supporting Files/Assets.xcassets"
actool \
--compile "$app/Contents/Frameworks/Kit.framework/Resources" \
--platform macosx \
--minimum-deployment-target 14.0 \
"Kit/Supporting Files/Assets.xcassets"
# Copy localization files
find "Stats/Supporting Files" -name '*.lproj' -type d -exec cp -r {} "$app/Contents/Resources/" \;