From ba0f5fd90809cfe4742c4e26f0aa216086441cbb Mon Sep 17 00:00:00 2001 From: Picnoir Date: Thu, 4 Apr 2024 09:21:37 +0200 Subject: [PATCH] power-profiles-daemon: 0.20 -> 0.21 This release creates a dependency between upower and ppd. Power-profiles-daemon now query the upower dbus interface to figure out whether or not the device operates on battery mode to underclock the CPU when the balanced mode is enabled. CLI-wise, powerprofilesctl now support bash/zsh completions. The manpage has been updated. Full changelog: https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/releases/0.21 --- .../linux/power-profiles-daemon/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/linux/power-profiles-daemon/default.nix b/pkgs/os-specific/linux/power-profiles-daemon/default.nix index 2ea7a06b46e1..11f26e5013a8 100644 --- a/pkgs/os-specific/linux/power-profiles-daemon/default.nix +++ b/pkgs/os-specific/linux/power-profiles-daemon/default.nix @@ -1,5 +1,6 @@ { stdenv , lib +, bash-completion , pkg-config , meson , mesonEmulatorHook @@ -25,7 +26,7 @@ stdenv.mkDerivation rec { pname = "power-profiles-daemon"; - version = "0.20"; + version = "0.21"; outputs = [ "out" "devdoc" ]; @@ -34,7 +35,7 @@ stdenv.mkDerivation rec { owner = "upower"; repo = "power-profiles-daemon"; rev = version; - sha256 = "sha256-8wSRPR/1ELcsZ9K3LvSNlPcJvxRhb/LRjTIxKtdQlCA="; + sha256 = "sha256-5JbMbz38SeNEkVKFjJLxeUHiOrx+QCaK/vXgRPbzwzY="; }; nativeBuildInputs = [ @@ -53,12 +54,15 @@ stdenv.mkDerivation rec { pygobject3 dbus-python python-dbusmock + argparse-manpage + shtab ])) ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ mesonEmulatorHook ]; buildInputs = [ + bash-completion libgudev systemd upower @@ -84,6 +88,8 @@ stdenv.mkDerivation rec { mesonFlags = [ "-Dsystemdsystemunitdir=${placeholder "out"}/lib/systemd/system" "-Dgtk_doc=true" + "-Dpylint=disabled" + "-Dzshcomp=${placeholder "out"}/share/zsh/site-functions" "-Dtests=${lib.boolToString (stdenv.buildPlatform.canExecute stdenv.hostPlatform)}" ]; @@ -112,6 +118,6 @@ stdenv.mkDerivation rec { mainProgram = "powerprofilesctl"; platforms = platforms.linux; license = licenses.gpl3Plus; - maintainers = with maintainers; [ mvnetbiz ]; + maintainers = with maintainers; [ mvnetbiz picnoir ]; }; }