nixpkgs/pkgs/os-specific/darwin/aldente/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenvNoCC
, fetchurl
2024-01-29 21:18:16 +00:00
, _7zz
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "aldente";
2023-12-17 17:57:16 +00:00
version = "1.24.1";
src = fetchurl {
url = "https://github.com/davidwernhart/aldente-charge-limiter/releases/download/${finalAttrs.version}/AlDente.dmg";
2023-12-17 17:57:16 +00:00
hash = "sha256-vOv52SrUki2f9vGzYy8dhVJVxna2ZvhtG6WbKjCv3gA=";
};
dontBuild = true;
dontFixup = true;
2024-01-29 21:18:16 +00:00
# AlDente.dmg is APFS formatted, unpack with 7zz
nativeBuildInputs = [ _7zz ];
sourceRoot = "AlDente.app";
installPhase = ''
runHook preInstall
mkdir -p $out/Applications/AlDente.app
cp -R . $out/Applications/AlDente.app
runHook postInstall
'';
2023-11-26 23:36:42 +00:00
meta = {
description = "macOS tool to limit maximum charging percentage";
homepage = "https://apphousekitchen.com";
changelog = "https://github.com/davidwernhart/aldente-charge-limiter/releases/tag/${finalAttrs.version}";
2023-11-26 23:36:42 +00:00
license = with lib.licenses; [ unfree ];
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
maintainers = with lib.maintainers; [ stepbrobd ];
platforms = [ "aarch64-darwin" "x86_64-darwin" ];
};
})