about summary refs log tree commit diff
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorStepBroBD <Hi@StepBroBD.com>2023-06-29 18:26:40 -0600
committerStepBroBD <Hi@StepBroBD.com>2023-06-30 10:14:26 -0600
commit271969a12e4bbab47fc31b3541604a5b9bf5fb08 (patch)
tree54f52916fc2087b41d90702664fcc3716e2575a8 /pkgs/os-specific
parent8088e14e12f21093cdb143c2234d34af7d331cde (diff)
coconutbattery: init at 3.9.12
Co-authored-by: OTABI Tomoya <tomoya.otabi@gmail.com>
Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/darwin/coconutbattery/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/os-specific/darwin/coconutbattery/default.nix b/pkgs/os-specific/darwin/coconutbattery/default.nix
new file mode 100644
index 0000000000000..69302baa92eb7
--- /dev/null
+++ b/pkgs/os-specific/darwin/coconutbattery/default.nix
@@ -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" ];
+  };
+})