gnu: Add thermald.
* gnu/packages/admin.scm (thermald): New variable.
This commit is contained in:
parent
73c791b8f3
commit
5898968438
|
@ -17,6 +17,7 @@
|
||||||
;;; Copyright © 2016 John Darrington <jmd@gnu.org>
|
;;; Copyright © 2016 John Darrington <jmd@gnu.org>
|
||||||
;;; Copyright © 2017 Ben Sturmfels <ben@sturm.com.au>
|
;;; Copyright © 2017 Ben Sturmfels <ben@sturm.com.au>
|
||||||
;;; Copyright © 2017 Ethan R. Jones <doubleplusgood23@gmail.com>
|
;;; Copyright © 2017 Ethan R. Jones <doubleplusgood23@gmail.com>
|
||||||
|
;;; Copyright © 2017 Christopher Allan Webber <cwebber@dustycloud.org>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -80,7 +81,8 @@
|
||||||
#:use-module (gnu packages autotools)
|
#:use-module (gnu packages autotools)
|
||||||
#:use-module (gnu packages gnome)
|
#:use-module (gnu packages gnome)
|
||||||
#:use-module (gnu packages kerberos)
|
#:use-module (gnu packages kerberos)
|
||||||
#:use-module (gnu packages gtk))
|
#:use-module (gnu packages gtk)
|
||||||
|
#:use-module (gnu packages xml))
|
||||||
|
|
||||||
(define-public aide
|
(define-public aide
|
||||||
(package
|
(package
|
||||||
|
@ -2180,3 +2182,53 @@ navigation, opening files and running tasks. There is no config file and
|
||||||
mime associations are hard-coded. The incredible user-friendliness and speed
|
mime associations are hard-coded. The incredible user-friendliness and speed
|
||||||
make it a perfect utility on modern distros.")
|
make it a perfect utility on modern distros.")
|
||||||
(license license:bsd-2)))
|
(license license:bsd-2)))
|
||||||
|
|
||||||
|
(define-public thermald
|
||||||
|
(package
|
||||||
|
(name "thermald")
|
||||||
|
(version "1.6")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append "https://github.com/01org/thermal_daemon/archive/v"
|
||||||
|
version ".tar.gz"))
|
||||||
|
(sha256 (base32
|
||||||
|
"14klz9fnvi9jdlaqwrp61xa5nh051n8ykrs1fh1wxd7j66qf2fn6"))))
|
||||||
|
(build-system gnu-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:phases (modify-phases %standard-phases
|
||||||
|
(add-after
|
||||||
|
'unpack 'autogen.sh-and-fix-paths
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
;; upstartconfir is hardcoded to /etc/init and the build
|
||||||
|
;; system tries to mkdir that. We don't even need upstart
|
||||||
|
;; files at all; this is a fast and kludgy workaround
|
||||||
|
(substitute* "data/Makefile.am"
|
||||||
|
(("upstartconfdir = /etc/init")
|
||||||
|
(string-append "upstartconfdir = "
|
||||||
|
out "/etc/init")))
|
||||||
|
;; Now run autogen
|
||||||
|
(zero? (system* "sh" "autogen.sh"))))))
|
||||||
|
#:configure-flags
|
||||||
|
(let ((out (assoc-ref %outputs "out")))
|
||||||
|
(list (string-append "--sysconfdir="
|
||||||
|
out "/etc")
|
||||||
|
(string-append "--with-udev-dir="
|
||||||
|
out "/lib/udev")
|
||||||
|
(string-append "--with-dbus-sys-dir="
|
||||||
|
out "/etc/dbus-1/system.d")
|
||||||
|
"--localstatedir=/var"))))
|
||||||
|
(native-inputs
|
||||||
|
`(("autoconf" ,autoconf)
|
||||||
|
("automake" ,automake)
|
||||||
|
("glib" ,glib "bin") ; for glib-genmarshal, etc.
|
||||||
|
("pkg-config" ,pkg-config)))
|
||||||
|
(inputs
|
||||||
|
`(("dbus-glib" ,dbus-glib)
|
||||||
|
("libxml2" ,libxml2)))
|
||||||
|
(home-page "https://01.org/linux-thermal-daemon/")
|
||||||
|
(synopsis "CPU scaling for thermal management")
|
||||||
|
(description "The Linux Thermal Daemon helps monitor and control temperature
|
||||||
|
on systems running the Linux kernel.")
|
||||||
|
(license license:gpl2+)))
|
||||||
|
|
Loading…
Reference in New Issue