From 629b012e04c93a5f653fc62060f2e0473ba74a0c Mon Sep 17 00:00:00 2001 From: Yifei Sun Date: Sat, 10 Aug 2024 23:36:50 +0900 Subject: [PATCH] aldente: 1.24.1 -> 1.27.3 - also formatted with nixfmt-rfc-style --- .../al/aldente/package.nix} | 25 ++++++++++++------- pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 16 insertions(+), 11 deletions(-) rename pkgs/{os-specific/darwin/aldente/default.nix => by-name/al/aldente/package.nix} (69%) diff --git a/pkgs/os-specific/darwin/aldente/default.nix b/pkgs/by-name/al/aldente/package.nix similarity index 69% rename from pkgs/os-specific/darwin/aldente/default.nix rename to pkgs/by-name/al/aldente/package.nix index dd81cbece335..9759dba06ebd 100644 --- a/pkgs/os-specific/darwin/aldente/default.nix +++ b/pkgs/by-name/al/aldente/package.nix @@ -1,16 +1,18 @@ -{ lib -, stdenvNoCC -, fetchurl -, _7zz +{ + lib, + stdenvNoCC, + fetchurl, + _7zz, + nix-update-script, }: stdenvNoCC.mkDerivation (finalAttrs: { pname = "aldente"; - version = "1.24.1"; + version = "1.27.3"; src = fetchurl { url = "https://github.com/davidwernhart/aldente-charge-limiter/releases/download/${finalAttrs.version}/AlDente.dmg"; - hash = "sha256-vOv52SrUki2f9vGzYy8dhVJVxna2ZvhtG6WbKjCv3gA="; + hash = "sha256-G6Kpfy1LE1VG/nTks4KU6doTKZeJT6gk6JtKmUEy6FI="; }; dontBuild = true; @@ -30,13 +32,18 @@ stdenvNoCC.mkDerivation (finalAttrs: { runHook postInstall ''; + passthru.updateScript = nix-update-script { }; + 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 = with lib.licenses; [ unfree ]; - sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + license = lib.licenses.unfree; + sourceProvenance = [ lib.sourceTypes.binaryNativeCode ]; maintainers = with lib.maintainers; [ stepbrobd ]; - platforms = [ "aarch64-darwin" "x86_64-darwin" ]; + platforms = [ + "aarch64-darwin" + "x86_64-darwin" + ]; }; }) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8cb88ab12f6c..f0e14fa35126 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27239,8 +27239,6 @@ with pkgs; acpitool = callPackage ../os-specific/linux/acpitool { }; - aldente = callPackage ../os-specific/darwin/aldente { }; - alfred = callPackage ../os-specific/linux/batman-adv/alfred.nix { }; alertmanager-irc-relay = callPackage ../servers/monitoring/alertmanager-irc-relay { };