Merge pull request #240621 from StepBroBD/coconutbattery

coconutbattery: init at 3.9.12
This commit is contained in:
Pol Dellaiera 2023-06-30 19:23:28 +02:00 committed by GitHub
commit 4586970ee7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{ lib
, stdenvNoCC
, fetchzip
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "coconutbattery";
version = "3.9.12";
src = fetchzip {
url = "https://coconut-flavour.com/downloads/coconutBattery_${builtins.replaceStrings [ "." ] [ "" ] finalAttrs.version}.zip";
hash = "sha256-8WxGjZbxUqchSIfvpK2RLifn7/TD5nau5hgMzLUiV2o=";
};
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 = "The 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" ];
};
})

View file

@ -27047,6 +27047,8 @@ with pkgs;
cockroachdb = callPackage ../servers/sql/cockroachdb { };
coconutbattery = callPackage ../os-specific/darwin/coconutbattery { };
conky = callPackage ../os-specific/linux/conky ({
lua = lua5_3_compat;
inherit (linuxPackages.nvidia_x11.settings) libXNVCtrl;