From e206036f387caee2e6f8ff74aa415f8a9a639621 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 20 Nov 2022 01:00:00 +0100 Subject: gnu: powertop: Refactor regexp. * gnu/packages/linux.scm (powertop)[arguments]: Factor out substitute* regexp. --- gnu/packages/linux.scm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 135fb20999..8086980901 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -3179,9 +3179,8 @@ devices. It replaces @code{iwconfig}, which is deprecated.") ;; 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 -- cgit v1.2.3