9 stdenvNoCC.mkDerivation (finalAttrs: {
14 url = "https://github.com/davidwernhart/aldente-charge-limiter/releases/download/${finalAttrs.version}/AlDente.dmg";
15 hash = "sha256-ihfTVVc6kM+rOyPG7k2rkLVmCsOlBA7Uik8KrWhrdp0=";
21 # AlDente.dmg is APFS formatted, unpack with 7zz
22 nativeBuildInputs = [ _7zz ];
24 sourceRoot = "AlDente.app";
29 mkdir -p $out/Applications/AlDente.app
30 cp -R . $out/Applications/AlDente.app
35 passthru.updateScript = nix-update-script { };
38 description = "macOS tool to limit maximum charging percentage";
39 homepage = "https://apphousekitchen.com";
40 changelog = "https://github.com/davidwernhart/aldente-charge-limiter/releases/tag/${finalAttrs.version}";
41 license = lib.licenses.unfree;
42 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
43 maintainers = with lib.maintainers; [ stepbrobd ];