radix/packages/linux.scm

27 lines
996 B
Scheme
Raw Normal View History

2023-08-04 11:31:31 +00:00
(define-module (radix packages linux)
#:use-module (guix packages)
#:use-module (guix gexp)
#:use-module (gnu packages linux)
#:export (thinkfan-next))
(define thinkfan-next
(package
(inherit thinkfan)
(arguments
(list #:modules '((guix build cmake-build-system)
(guix build utils)
(srfi srfi-26))
#:tests? #f
#:configure-flags
#|Enable reading temperatures from hard disks via S.M.A.R.T.|#
#~(list "-DUSE_ATASMART:BOOL=ON")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'create-init-scripts
#|Don't even verify for the presence of SystemD or OpenRC|#
(lambda _
2023-08-04 11:31:31 +00:00
(substitute* "CMakeLists.txt"
(("pkg_check_modules\\((SYSTEMD|OPENRC).*" _) "")
#|Fix the destinations|#
(("/etc" directory) (string-append #$output directory))))))))))