forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / co / coconutbattery / package.nix
blobd3e67c96cfddf5f8d942cd395f14759e95aeb044
1 { lib
2 , stdenvNoCC
3 , fetchzip
4 }:
6 stdenvNoCC.mkDerivation (finalAttrs: {
7   pname = "coconutbattery";
8   version = "3.9.14";
10   src = fetchzip {
11     url = "https://coconut-flavour.com/downloads/coconutBattery_${builtins.replaceStrings [ "." ] [ "" ] finalAttrs.version}.zip";
12     hash = "sha256-zKSPKwDBwxlyNJFurCLLGtba9gpizJCjOOAd81vdD5Q=";
13   };
15   dontPatch = true;
16   dontConfigure = true;
17   dontBuild = true;
18   dontFixup = true;
20   installPhase = ''
21     runHook preInstall
23     mkdir -p $out/Applications/coconutBattery.app
24     cp -R . $out/Applications/coconutBattery.app
26     runHook postInstall
27   '';
29   meta = with lib; {
30     description = "Standard for battery reading since 2005";
31     longDescription = ''
32       With coconutBattery you are always aware of your current battery health.
33       It shows you live information about the battery quality in your Mac, iPhone and iPad.
34     '';
35     homepage = "https://www.coconut-flavour.com/coconutbattery";
36     license = with licenses; [ unfree ];
37     sourceProvenance = with sourceTypes; [ binaryNativeCode ];
38     maintainers = with maintainers; [ stepbrobd ];
39     platforms = [ "aarch64-darwin" "x86_64-darwin" ];
40   };