mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-28 05:00:29 +02:00
gnu: htop: Enable support for temperature readings via lm-sensors.
* gnu/packages/admin.scm (htop)[inputs]: add lm-sensors. [arguments] <#:configure-flags>: pass --enable-sensors. [arguments] <#:phases>: patch dlopen(3) invocation. Change-Id: Ibb4476b85289d2200bd899adb785fa967a603c75 Reviewed-by: Cayetano Santos <csantosb@inventati.org> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
committed by
Sharlatan Hellseher
parent
0c2c5fc8cf
commit
460ef912ae
@@ -1115,8 +1115,21 @@ on memory usage on GNU/Linux systems.")
|
||||
(base32 "058y4a4mvx9m179dyr4wi8mlm6i4ybywshadaj4cvfn9fv0r0nkx"))
|
||||
(file-name (git-file-name name version))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:configure-flags
|
||||
#~(list "--enable-sensors")
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-dlopen
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "linux/LibSensors.c"
|
||||
(("dlopen\\(\"libsensors\\.so")
|
||||
(string-append "dlopen(\""
|
||||
(search-input-file
|
||||
inputs "/lib/libsensors.so")))))))))
|
||||
(inputs
|
||||
(list ncurses))
|
||||
(list ncurses (list lm-sensors "lib")))
|
||||
(native-inputs
|
||||
(list autoconf automake python-minimal-wrapper)) ; for scripts/MakeHeader.py
|
||||
(home-page "https://htop.dev")
|
||||
|
||||
Reference in New Issue
Block a user