diff options
author | Meiyo Peng <meiyo.peng@gmail.com> | 2018-10-18 14:38:02 +0800 |
---|---|---|
committer | 宋文武 <iyzsong@member.fsf.org> | 2018-10-25 21:21:26 +0800 |
commit | 643961bbc6474e1824967786c35207c43407d497 (patch) | |
tree | 7836db2b5acc1f9ca0890c47e442c7645e8cc24b /gnu/packages/lxqt.scm | |
parent | ca302c3e8cbedb62f41f25eee4c360064c368573 (diff) | |
download | guix-643961bbc6474e1824967786c35207c43407d497.tar.gz |
gnu: Add lxqt-powermanagement.
* gnu/packages/lxqt.scm (lxqt-powermanagement): New variable. Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
Diffstat (limited to 'gnu/packages/lxqt.scm')
-rw-r--r-- | gnu/packages/lxqt.scm | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/gnu/packages/lxqt.scm b/gnu/packages/lxqt.scm index 7c0e866ef0..43c7caa98b 100644 --- a/gnu/packages/lxqt.scm +++ b/gnu/packages/lxqt.scm @@ -604,6 +604,50 @@ of other programs.") LXQt.") (license license:lgpl2.1+))) +(define-public lxqt-powermanagement + (package + (name "lxqt-powermanagement") + (version "0.13.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/lxqt/" name "/releases/download/" + version "/" name "-" version ".tar.xz")) + (sha256 + (base32 "15nvdypyjwnp7k3d2pkhdbmaqb3ccacmh95rbdbc5mr7yrjy9613")))) + (build-system cmake-build-system) + (inputs + `(("kidletime" ,kidletime) + ("kwindowsystem" ,kwindowsystem) + ("liblxqt" ,liblxqt) + ("libqtxdg" ,libqtxdg) + ("qtbase" ,qtbase) + ("qtsvg" ,qtsvg) + ("qtx11extras" ,qtx11extras) + ("solid" ,solid))) + (native-inputs + `(("lxqt-build-tools" ,lxqt-build-tools) + ("qttools" ,qttools))) + (arguments + '(#:tests? #f ; no tests + #:configure-flags + ;; TODO: prefetch translations files from 'lxqt-l10n'. + '("-DPULL_TRANSLATIONS=NO") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-source + (lambda _ + (substitute* '("autostart/CMakeLists.txt") + (("DESTINATION \"\\$\\{LXQT_ETC_XDG_DIR\\}") + "DESTINATION \"${CMAKE_INSTALL_PREFIX}/etc/xdg")) + #t))))) + (home-page "https://lxqt.org/") + (synopsis "Power management module for LXQt") + (description "lxqt-powermanagement is providing tools to monitor power +management events and optionally trigger actions like e. g. shut down a system +when laptop batteries are low on power.") + (license license:lgpl2.1+))) + (define-public lxqt-runner (package (name "lxqt-runner") |