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

50 lines
1.2 KiB
Nix
Raw Permalink Normal View History

{
lib,
stdenvNoCC,
fetchurl,
_7zz,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "aldente";
2025-07-06 20:47:29 +02:00
version = "1.34.1";
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=";
};
dontBuild = true;
dontFixup = true;
2024-01-29 22:18:16 +01: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
'';
passthru.updateScript = nix-update-script { };
2023-11-26 18:36:42 -05: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}";
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 ];
platforms = [
"aarch64-darwin"
"x86_64-darwin"
];
};
})