Merge pull request #240621 from StepBroBD/coconutbattery
coconutbattery: init at 3.9.12
This commit is contained in:
commit
4586970ee7
41
pkgs/os-specific/darwin/coconutbattery/default.nix
Normal file
41
pkgs/os-specific/darwin/coconutbattery/default.nix
Normal 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" ];
|
||||
};
|
||||
})
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user