gnu: tpacpi-bat: Fix cross-compilation.
* gnu/packages/linux.scm (tpacpi-bat)[arguments]: Use SEARCH-INPUT-FILE. [inputs]: Add coreutils-minimal.
This commit is contained in:
parent
4267580a53
commit
e0c434ee72
1 changed files with 4 additions and 3 deletions
|
@ -6373,10 +6373,10 @@ (define-public tpacpi-bat
|
|||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'refer-to-inputs
|
||||
(lambda _
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "tpacpi-bat"
|
||||
(("cat ")
|
||||
(format #f "~a " (which "cat")))
|
||||
(string-append (search-input-file inputs "bin/cat") " "))
|
||||
;; tpacpi-bat modprobes the acpi_call kernel module if it's not
|
||||
;; loaded. That's the administrator's prerogative; disable it.
|
||||
(("system \"(modprobe .*)\"" _ match)
|
||||
|
@ -6397,7 +6397,8 @@ (define-public tpacpi-bat
|
|||
(copy-recursively file target)))
|
||||
(list "battery_asl" "examples" "README.md"))))))))
|
||||
(inputs
|
||||
(list perl))
|
||||
(list coreutils-minimal
|
||||
perl))
|
||||
(home-page "https://github.com/teleshoes/tpacpi-bat")
|
||||
(synopsis "ThinkPad battery charge controller")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue