gnu: powertop: Refactor regexp.

* gnu/packages/linux.scm (powertop)[arguments]:
Factor out substitute* regexp.
This commit is contained in:
Tobias Geerinckx-Rice 2022-11-20 01:00:00 +01:00
parent 2bb8bf36a5
commit e206036f38
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -3179,9 +3179,8 @@ (define-public powertop
;; These programs are only needed to calibrate, so using
;; relative file names avoids adding extra inputs. When they
;; are missing powertop gracefully handles it.
(("/usr/bin/hcitool") "hcitool")
(("/usr/bin/xset") "xset")
(("/usr/sbin/hciconfig") "hciconfig"))))))))
(("/usr/s?bin/(hciconfig|hcitool|xset)" _ command)
command))))))))
(native-inputs
(list autoconf
autoconf-archive