guix-commits
[Top][All Lists]
Advanced

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

branch master updated: gnu: footswitch: Improve package style.


From: guix-commits
Subject: branch master updated: gnu: footswitch: Improve package style.
Date: Sat, 11 Feb 2023 15:45:49 -0500

This is an automated email from the git hooks/post-receive script.

ngz pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 582de0d469 gnu: footswitch: Improve package style.
582de0d469 is described below

commit 582de0d4699de775ba217f46015f6758045935cf
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sat Feb 11 21:44:48 2023 +0100

    gnu: footswitch: Improve package style.
    
    * gnu/packages/accessibility.scm (footswitch)[arguments]: Use G-expressions.
    <#:phases>: Remove trailing #T.
    [description]: Simplify it.
---
 gnu/packages/accessibility.scm | 33 ++++++++++++++++-----------------
 1 file changed, 16 insertions(+), 17 deletions(-)

diff --git a/gnu/packages/accessibility.scm b/gnu/packages/accessibility.scm
index fb9387e324..21387ff0d4 100644
--- a/gnu/packages/accessibility.scm
+++ b/gnu/packages/accessibility.scm
@@ -23,6 +23,7 @@
 
 (define-module (gnu packages accessibility)
   #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (guix gexp)
   #:use-module (guix utils)
   #:use-module (guix packages)
   #:use-module (guix download)
@@ -260,32 +261,30 @@ available to help to click.")
                  (base32
                   "0xkk60sg3szpgbl3z8djlpagglsldv9viqibsih6wcnbhikzlc6j"))))
       (build-system gnu-build-system)
+      (arguments
+       (list
+        #:tests? #f                     ; no tests
+        #:make-flags #~(list (string-append "CC=" #$(cc-for-target)))
+        #:phases
+        #~(modify-phases %standard-phases
+            (delete 'configure)
+            ;; Install target in the Makefile does not work for Guix.
+            (replace 'install
+              (lambda _
+                (let ((bin (string-append #$output "/bin")))
+                  (install-file "footswitch" bin)
+                  (install-file "scythe" bin)))))))
       (native-inputs
        (list pkg-config))
       (inputs
        (list hidapi))
-      (arguments
-       `(#:tests? #f ; no tests
-         #:make-flags (list (string-append "CC=" ,(cc-for-target)))
-         #:phases (modify-phases %standard-phases
-                    (delete 'configure)
-                    ;; Install target in the Makefile does not work for Guix
-                    (replace 'install
-                      (lambda* (#:key outputs #:allow-other-keys)
-                        (let ((bin (string-append (assoc-ref outputs "out")
-                                                  "/bin")))
-                          (install-file "footswitch" bin)
-                          (install-file "scythe" bin)
-                          #t))))))
       (home-page "https://github.com/rgerganov/footswitch";)
       (synopsis "Command line utilities for PCsensor and Scythe foot switches")
       (description
        "This package provides command line utilities for programming PCsensor
 and Scythe foot switches.  It works for both single pedal and three pedal
-devices.  The \"footswitch\" command programs devices with vendorId:productId
-combinations matching 0c45:7403, 0c45:7404, 413d:2107, and 1a86:e026.  The
-\"scythe\" command programs switches matching 0426:3011.")
-    (license license:expat))))
+devices.")
+      (license license:expat))))
 
 (define-public xmagnify
   (package



reply via email to

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