2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchzip
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
|
|
pname = "coconutbattery";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "3.9.14";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://coconut-flavour.com/downloads/coconutBattery_${builtins.replaceStrings [ "." ] [ "" ] finalAttrs.version}.zip";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-zKSPKwDBwxlyNJFurCLLGtba9gpizJCjOOAd81vdD5Q=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontPatch = true;
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
dontFixup = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/Applications/coconutBattery.app
|
|
|
|
cp -R . $out/Applications/coconutBattery.app
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Standard for battery reading since 2005";
|
2023-07-15 17:15:38 +00:00
|
|
|
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 ];
|
|
|
|
platforms = [ "aarch64-darwin" "x86_64-darwin" ];
|
|
|
|
};
|
|
|
|
})
|