1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchurl, undmg, ... }:
stdenv.mkDerivation rec {
pname = "AlDente";
version = "1.15.2";
buildInputs = [ undmg ];
sourceRoot = ".";
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
mkdir -p "$out/Applications"
cp -r AlDente.app "$out/Applications/AlDente.app"
'';
src = fetchurl {
name = "AlDente-${version}.dmg";
url = "https://github.com/davidwernhart/AlDente/releases/download/${version}/AlDente.dmg";
sha256 = "1bdfnh295dr1hrz12p2yjy86rr4lbghhs3f7wy7d73yzc2j5i7g2";
};
# meta = with stdenv.lib; {
# description = "macOS tool to limit maximum charging percentage";
# homepage = "https://github.com/davidwernhart/AlDente";
# platforms = platforms.darwin;
# };
}