diff options
| author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2023-02-11 21:44:48 +0100 |
|---|---|---|
| committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2023-02-11 21:44:48 +0100 |
| commit | 582de0d4699de775ba217f46015f6758045935cf (patch) | |
| tree | 1a6cadcf75dc25433ecab76fa5db527d6b8361a8 /gnu/packages/accessibility.scm | |
| parent | 5345cf2fbfcfeebfa8413a14fb8dc77bb6ab532f (diff) | |
gnu: footswitch: Improve package style.
* gnu/packages/accessibility.scm (footswitch)[arguments]: Use G-expressions.
<#:phases>: Remove trailing #T.
[description]: Simplify it.
Diffstat (limited to 'gnu/packages/accessibility.scm')
| -rw-r--r-- | gnu/packages/accessibility.scm | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/gnu/packages/accessibility.scm b/gnu/packages/accessibility.scm index fb9387e324f..21387ff0d45 100644 --- a/gnu/packages/accessibility.scm +++ b/gnu/packages/accessibility.scm | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | 23 | ||
| 24 | (define-module (gnu packages accessibility) | 24 | (define-module (gnu packages accessibility) |
| 25 | #:use-module ((guix licenses) #:prefix license:) | 25 | #:use-module ((guix licenses) #:prefix license:) |
| 26 | #:use-module (guix gexp) | ||
| 26 | #:use-module (guix utils) | 27 | #:use-module (guix utils) |
| 27 | #:use-module (guix packages) | 28 | #:use-module (guix packages) |
| 28 | #:use-module (guix download) | 29 | #:use-module (guix download) |
| @@ -260,32 +261,30 @@ available to help to click.") | |||
| 260 | (base32 | 261 | (base32 |
| 261 | "0xkk60sg3szpgbl3z8djlpagglsldv9viqibsih6wcnbhikzlc6j")))) | 262 | "0xkk60sg3szpgbl3z8djlpagglsldv9viqibsih6wcnbhikzlc6j")))) |
| 262 | (build-system gnu-build-system) | 263 | (build-system gnu-build-system) |
| 264 | (arguments | ||
| 265 | (list | ||
| 266 | #:tests? #f ; no tests | ||
| 267 | #:make-flags #~(list (string-append "CC=" #$(cc-for-target))) | ||
| 268 | #:phases | ||
| 269 | #~(modify-phases %standard-phases | ||
| 270 | (delete 'configure) | ||
| 271 | ;; Install target in the Makefile does not work for Guix. | ||
| 272 | (replace 'install | ||
| 273 | (lambda _ | ||
| 274 | (let ((bin (string-append #$output "/bin"))) | ||
| 275 | (install-file "footswitch" bin) | ||
| 276 | (install-file "scythe" bin))))))) | ||
| 263 | (native-inputs | 277 | (native-inputs |
| 264 | (list pkg-config)) | 278 | (list pkg-config)) |
| 265 | (inputs | 279 | (inputs |
| 266 | (list hidapi)) | 280 | (list hidapi)) |
| 267 | (arguments | ||
| 268 | `(#:tests? #f ; no tests | ||
| 269 | #:make-flags (list (string-append "CC=" ,(cc-for-target))) | ||
| 270 | #:phases (modify-phases %standard-phases | ||
| 271 | (delete 'configure) | ||
| 272 | ;; Install target in the Makefile does not work for Guix | ||
| 273 | (replace 'install | ||
| 274 | (lambda* (#:key outputs #:allow-other-keys) | ||
| 275 | (let ((bin (string-append (assoc-ref outputs "out") | ||
| 276 | "/bin"))) | ||
| 277 | (install-file "footswitch" bin) | ||
| 278 | (install-file "scythe" bin) | ||
| 279 | #t)))))) | ||
| 280 | (home-page "https://github.com/rgerganov/footswitch") | 281 | (home-page "https://github.com/rgerganov/footswitch") |
| 281 | (synopsis "Command line utilities for PCsensor and Scythe foot switches") | 282 | (synopsis "Command line utilities for PCsensor and Scythe foot switches") |
| 282 | (description | 283 | (description |
| 283 | "This package provides command line utilities for programming PCsensor | 284 | "This package provides command line utilities for programming PCsensor |
| 284 | and Scythe foot switches. It works for both single pedal and three pedal | 285 | and Scythe foot switches. It works for both single pedal and three pedal |
| 285 | devices. The \"footswitch\" command programs devices with vendorId:productId | 286 | devices.") |
| 286 | combinations matching 0c45:7403, 0c45:7404, 413d:2107, and 1a86:e026. The | 287 | (license license:expat)))) |
| 287 | \"scythe\" command programs switches matching 0426:3011.") | ||
| 288 | (license license:expat)))) | ||
| 289 | 288 | ||
| 290 | (define-public xmagnify | 289 | (define-public xmagnify |
| 291 | (package | 290 | (package |
