guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

57/59: gnu: powertop: Refactor regexp.


From: guix-commits
Subject: 57/59: gnu: powertop: Refactor regexp.
Date: Tue, 29 Nov 2022 16:08:24 -0500 (EST)

nckx pushed a commit to branch master
in repository guix.

commit e206036f387caee2e6f8ff74aa415f8a9a639621
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Nov 20 01:00:00 2022 +0100

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]