From be58312bc600207b4a408be0e82ff9ab5164cc4b Mon Sep 17 00:00:00 2001 From: Yifei Sun Date: Thu, 3 Apr 2025 19:51:45 -0400 Subject: [PATCH] coconutbattery: 3.9.14 -> 4.0.2,152 --- pkgs/by-name/co/coconutbattery/package.nix | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/pkgs/by-name/co/coconutbattery/package.nix b/pkgs/by-name/co/coconutbattery/package.nix index cef8e8b27769..a822dac98fab 100644 --- a/pkgs/by-name/co/coconutbattery/package.nix +++ b/pkgs/by-name/co/coconutbattery/package.nix @@ -6,20 +6,15 @@ stdenvNoCC.mkDerivation (finalAttrs: { pname = "coconutbattery"; - version = "3.9.14"; + version = "4.0.2,152"; src = fetchzip { url = "https://coconut-flavour.com/downloads/coconutBattery_${ - builtins.replaceStrings [ "." ] [ "" ] finalAttrs.version + lib.replaceStrings [ "." "," ] [ "" "_" ] finalAttrs.version }.zip"; - hash = "sha256-zKSPKwDBwxlyNJFurCLLGtba9gpizJCjOOAd81vdD5Q="; + hash = "sha256-PNSDUp07lUx5ebcfM3WSJAfRQjeuIIy7KfY0KJ0i1AE="; }; - dontPatch = true; - dontConfigure = true; - dontBuild = true; - dontFixup = true; - installPhase = '' runHook preInstall @@ -29,16 +24,16 @@ stdenvNoCC.mkDerivation (finalAttrs: { runHook postInstall ''; - meta = with lib; { + meta = { description = "Standard for battery reading since 2005"; longDescription = '' With coconutBattery you are always aware of your current battery health. It shows you live information about the battery quality in your Mac, iPhone and iPad. ''; homepage = "https://www.coconut-flavour.com/coconutbattery"; - license = with licenses; [ unfree ]; - sourceProvenance = with sourceTypes; [ binaryNativeCode ]; - maintainers = with maintainers; [ stepbrobd ]; + license = with lib.licenses; [ unfree ]; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + maintainers = with lib.maintainers; [ stepbrobd ]; platforms = [ "aarch64-darwin" "x86_64-darwin"