Merge pull request #240621 from StepBroBD/coconutbattery

coconutbattery: init at 3.9.12

authored by

Pol Dellaiera and committed by
GitHub
4586970e a6f7d46c

+43
+41
pkgs/os-specific/darwin/coconutbattery/default.nix
··· 1 + { lib 2 + , stdenvNoCC 3 + , fetchzip 4 + }: 5 + 6 + stdenvNoCC.mkDerivation (finalAttrs: { 7 + pname = "coconutbattery"; 8 + version = "3.9.12"; 9 + 10 + src = fetchzip { 11 + url = "https://coconut-flavour.com/downloads/coconutBattery_${builtins.replaceStrings [ "." ] [ "" ] finalAttrs.version}.zip"; 12 + hash = "sha256-8WxGjZbxUqchSIfvpK2RLifn7/TD5nau5hgMzLUiV2o="; 13 + }; 14 + 15 + dontPatch = true; 16 + dontConfigure = true; 17 + dontBuild = true; 18 + dontFixup = true; 19 + 20 + installPhase = '' 21 + runHook preInstall 22 + 23 + mkdir -p $out/Applications/coconutBattery.app 24 + cp -R . $out/Applications/coconutBattery.app 25 + 26 + runHook postInstall 27 + ''; 28 + 29 + meta = with lib; { 30 + description = "The 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 + }; 41 + })
+2
pkgs/top-level/all-packages.nix
··· 27047 27047 27048 27048 cockroachdb = callPackage ../servers/sql/cockroachdb { }; 27049 27049 27050 + coconutbattery = callPackage ../os-specific/darwin/coconutbattery { }; 27051 + 27050 27052 conky = callPackage ../os-specific/linux/conky ({ 27051 27053 lua = lua5_3_compat; 27052 27054 inherit (linuxPackages.nvidia_x11.settings) libXNVCtrl;