depot/third_party/nixpkgs/pkgs/os-specific/darwin/coconutbattery/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

41 lines
1.1 KiB
Nix

{ lib
, stdenvNoCC
, fetchzip
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "coconutbattery";
version = "3.9.14";
src = fetchzip {
url = "https://coconut-flavour.com/downloads/coconutBattery_${builtins.replaceStrings [ "." ] [ "" ] finalAttrs.version}.zip";
hash = "sha256-zKSPKwDBwxlyNJFurCLLGtba9gpizJCjOOAd81vdD5Q=";
};
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; {
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 ];
platforms = [ "aarch64-darwin" "x86_64-darwin" ];
};
})