gnu: Add xsensors.

* gnu/packages/linux.scm (xsensors): New variable.
This commit is contained in:
Mark H Weaver 2014-08-07 20:35:10 -04:00
parent 30016044e0
commit b087d41316

View file

@ -46,6 +46,7 @@ (define-module (gnu packages linux)
#:use-module (gnu packages maths) #:use-module (gnu packages maths)
#:use-module (gnu packages which) #:use-module (gnu packages which)
#:use-module (gnu packages rrdtool) #:use-module (gnu packages rrdtool)
#:use-module (gnu packages gtk)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
@ -1441,3 +1442,40 @@ (define-public lm-sensors
you to access information from temperature, voltage, and fan speed sensors. you to access information from temperature, voltage, and fan speed sensors.
It works with most newer systems.") It works with most newer systems.")
(license gpl2+))) (license gpl2+)))
(define-public xsensors
(package
(name "xsensors")
(version "0.70")
(source (origin
(method url-fetch)
(uri (string-append
"http://www.linuxhardware.org/xsensors/xsensors-"
version ".tar.gz"))
(sha256
(base32
"1siplsfgvcxamyqf44h71jx6jdfmvhfm7mh0y1q8ps4zs6pj2zwh"))))
(build-system gnu-build-system)
(inputs `(("lm-sensors" ,lm-sensors)
("gtk" ,gtk+-2)))
(native-inputs `(("pkg-config" ,pkg-config)))
(arguments
`(#:phases (alist-cons-before
'configure 'enable-deprecated
(lambda _
(substitute* "src/Makefile.in"
(("-DGDK_DISABLE_DEPRECATED") "")
(("-DGTK_DISABLE_DEPRECATED") "")))
(alist-cons-before
'configure 'remove-Werror
(lambda _
(substitute* '("configure" "src/Makefile.in")
(("-Werror") "")))
%standard-phases))))
(home-page "http://www.linuxhardware.org/xsensors/")
(synopsis "Hardware health information viewer")
(description
"xsensors reads data from the libsensors library regarding hardware
health such as temperature, voltage and fan speed and displays the information
in a digital read-out.")
(license gpl2+)))