[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/11: gnu: Add power-profiles-daemon.
From: |
guix-commits |
Subject: |
10/11: gnu: Add power-profiles-daemon. |
Date: |
Sun, 8 Jan 2023 10:14:21 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit f761cc69951378bfc6e2d76d571194e0e6974716
Author: florhizome <florhizome@posteo.net>
AuthorDate: Sat Dec 10 21:31:21 2022 +0000
gnu: Add power-profiles-daemon.
* gnu/packages/freedesktop.scm (power-profiles-daemon): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/freedesktop.scm | 60 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 515d9b9cea..d63fe8f7ca 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -1025,6 +1025,66 @@ backends, PackageKit can perform these tasks using the
appropriate package
manager for the current system.")
(license license:gpl2+)))
+(define-public power-profiles-daemon
+ (package
+ (name "power-profiles-daemon")
+ (version "0.12")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url
"https://gitlab.freedesktop.org/hadess/power-profiles-daemon")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1wqcajbj358zpyj6y4h1v34y2yncq76wqxd0jm431habcly0bqyr"))))
+ (build-system meson-build-system)
+ (arguments
+ (list #:configure-flags #~(list "-Dsystemdsystemunitdir=false")
+ #:glib-or-gtk? #t
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'install 'fake-pkexec
+ (lambda _ (setenv "PKEXEC_UID" "-1")))
+ (add-before 'configure 'correct-polkit-dir
+ (lambda _
+ (substitute* "meson.build"
+ (("polkit_gobject_dep\\..*")
+ (string-append "'" #$output
"/share/polkit-1/actions'")))))
+ (add-after 'install 'wrap-program
+ (lambda _
+ (wrap-program
+ (string-append #$output "/bin/powerprofilesctl")
+ `("GUIX_PYTHONPATH" = (,(getenv "GUIX_PYTHONPATH")))
+ `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))))))
+ (native-inputs
+ (list `(,glib "bin") gobject-introspection pkg-config python vala))
+ (inputs
+ (list bash-minimal ;for 'wrap-program'
+ dbus
+ dbus-glib
+ libgudev
+ glib polkit
+ python
+ python-pygobject
+ upower))
+ (home-page "https://gitlab.freedesktop.org/hadess/power-profiles-daemon")
+ (synopsis "Power profile handling over D-Bus")
+ (description
+ "power-profiles-daemon offers to modify system behaviour based upon
+user-selected power profiles. There are 3 different power profiles, a
+\"balanced\" default mode, a \"power-saver\" mode, as well as a
+\"performance\" mode. The first 2 of those are available on every system.
+The \"performance\" mode is only available on select systems and is
+implemented by different \"drivers\" based on the system or systems it
+targets. In addition to those 2 or 3 modes (depending on the system),
+\"actions\" can be hooked up to change the behaviour of a particular device.
+For example, this can be used to disable the fast-charging for some USB
+devices when in power-saver mode.")
+ (license license:gpl3)))
+
+
(define-public python-libevdev
(package
(name "python-libevdev")
- branch master updated (3012dad9eb -> f5ea392b9c), guix-commits, 2023/01/08
- 02/11: gnu-maintenance: 'gnu' and 'gnu-ftp' predicates catch networking errors., guix-commits, 2023/01/08
- 01/11: gnu-maintenance: Factorize 'false-if-networking-failure'., guix-commits, 2023/01/08
- 07/11: gnu: python-jsonschema-next: Simplify package., guix-commits, 2023/01/08
- 04/11: refresh: Add CLI tests., guix-commits, 2023/01/08
- 09/11: gnu: python-proselint: Use official home page URL., guix-commits, 2023/01/08
- 06/11: gnu: Add python-pydicom., guix-commits, 2023/01/08
- 03/11: import: stackage: Catch networking errors in predicate., guix-commits, 2023/01/08
- 10/11: gnu: Add power-profiles-daemon.,
guix-commits <=
- 05/11: gnu: Add gdcm., guix-commits, 2023/01/08
- 08/11: gnu: clamav: Update to 0.103.7., guix-commits, 2023/01/08
- 11/11: gnu: Add vkmark., guix-commits, 2023/01/08