coconutbattery: init at 3.9.12
Co-authored-by: OTABI Tomoya <tomoya.otabi@gmail.com> Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
This commit is contained in:
parent
8088e14e12
commit
271969a12e
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" ];
|
||||
};
|
||||
})
|
|
@ -27039,6 +27039,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 a new issue