2024-08-10 23:36:50 +09:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenvNoCC,
|
|
|
|
fetchurl,
|
|
|
|
_7zz,
|
|
|
|
nix-update-script,
|
2023-07-06 21:22:43 -06:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
|
|
pname = "aldente";
|
2025-07-06 20:47:29 +02:00
|
|
|
version = "1.34.1";
|
2023-07-06 21:22:43 -06:00
|
|
|
|
|
|
|
src = fetchurl {
|
2025-07-06 20:47:29 +02:00
|
|
|
url = "https://github.com/AppHouseKitchen/AlDente-Battery_Care_and_Monitoring/releases/download/${finalAttrs.version}/AlDente.dmg";
|
|
|
|
hash = "sha256-hwlIYnd+ZYx+6+OQ1IPSzXKRaKDsKVJyeQCUhvhFMPU=";
|
2023-07-06 21:22:43 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
dontFixup = true;
|
|
|
|
|
2024-01-29 22:18:16 +01:00
|
|
|
# AlDente.dmg is APFS formatted, unpack with 7zz
|
2024-03-02 12:03:56 +01:00
|
|
|
nativeBuildInputs = [ _7zz ];
|
2023-07-06 21:22:43 -06:00
|
|
|
|
|
|
|
sourceRoot = "AlDente.app";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/Applications/AlDente.app
|
|
|
|
cp -R . $out/Applications/AlDente.app
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2024-08-10 23:36:50 +09:00
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
2023-11-26 18:36:42 -05:00
|
|
|
meta = {
|
2023-07-06 21:22:43 -06:00
|
|
|
description = "macOS tool to limit maximum charging percentage";
|
|
|
|
homepage = "https://apphousekitchen.com";
|
|
|
|
changelog = "https://github.com/davidwernhart/aldente-charge-limiter/releases/tag/${finalAttrs.version}";
|
2024-08-10 23:36:50 +09:00
|
|
|
license = lib.licenses.unfree;
|
2024-09-05 15:38:36 -04:00
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
2023-11-26 18:36:42 -05:00
|
|
|
maintainers = with lib.maintainers; [ stepbrobd ];
|
2024-08-10 23:36:50 +09:00
|
|
|
platforms = [
|
|
|
|
"aarch64-darwin"
|
|
|
|
"x86_64-darwin"
|
|
|
|
];
|
2023-07-06 21:22:43 -06:00
|
|
|
};
|
|
|
|
})
|