summaryrefslogtreecommitdiff
path: root/gnu/packages/accessibility.scm
diff options
context:
space:
mode:
authorStefan Reichör <stefan@xsteve.at>2017-09-23 21:33:20 +0200
committerThomas Danckaert <thomas.danckaert@gmail.com>2017-09-28 20:24:17 +0200
commit18a26f1c1300773ec01bc0afb86ca863b22fa285 (patch)
tree8bfa0e19dcbb2106ac387992b8a9270437becc56 /gnu/packages/accessibility.scm
parent1344deb937432b4463552b303a2ee13ff4037ebe (diff)
gnu: Add footswitch.
I have tested the built footswitch tool with my foot switch. It works as expected. Is accessibility.scm the correct location for this tool? * gnu/packages/accessibility.scm (footswitch): New variable.
Diffstat (limited to 'gnu/packages/accessibility.scm')
-rw-r--r--gnu/packages/accessibility.scm45
1 files changed, 44 insertions, 1 deletions
diff --git a/gnu/packages/accessibility.scm b/gnu/packages/accessibility.scm
index 0795808768f..78cb64a2d77 100644
--- a/gnu/packages/accessibility.scm
+++ b/gnu/packages/accessibility.scm
@@ -1,5 +1,6 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2017 ng0 <ng0@no-reply.pragmatique.xyz> 2;;; Copyright © 2017 ng0 <ng0@no-reply.pragmatique.xyz>
3;;; Copyright © 2017 Stefan Reichör <stefan@xsteve.at>
3;;; 4;;;
4;;; This file is part of GNU Guix. 5;;; This file is part of GNU Guix.
5;;; 6;;;
@@ -20,6 +21,8 @@
20 #:use-module ((guix licenses) #:prefix license:) 21 #:use-module ((guix licenses) #:prefix license:)
21 #:use-module (guix packages) 22 #:use-module (guix packages)
22 #:use-module (guix download) 23 #:use-module (guix download)
24 #:use-module (guix git-download)
25 #:use-module (guix build-system gnu)
23 #:use-module (guix build-system glib-or-gtk) 26 #:use-module (guix build-system glib-or-gtk)
24 #:use-module (gnu packages) 27 #:use-module (gnu packages)
25 #:use-module (gnu packages xml) 28 #:use-module (gnu packages xml)
@@ -29,7 +32,8 @@
29 #:use-module (gnu packages xorg) 32 #:use-module (gnu packages xorg)
30 #:use-module (gnu packages gettext) 33 #:use-module (gnu packages gettext)
31 #:use-module (gnu packages glib) 34 #:use-module (gnu packages glib)
32 #:use-module (gnu packages pkg-config)) 35 #:use-module (gnu packages pkg-config)
36 #:use-module (gnu packages libusb))
33 37
34(define-public florence 38(define-public florence
35 (package 39 (package
@@ -76,3 +80,42 @@ available to help to click.")
76 ;; The documentation is under FDL1.2, but we do not install the 80 ;; The documentation is under FDL1.2, but we do not install the
77 ;; documentation. 81 ;; documentation.
78 (license license:gpl2+))) 82 (license license:gpl2+)))
83
84(define-public footswitch
85 (let ((commit "7cb0a9333a150c27c7e4746ee827765d244e567a"))
86 (package
87 (name "footswitch")
88 (version (git-version "0.1" "1" commit))
89 (source (origin
90 (method git-fetch)
91 (uri (git-reference
92 (url "https://github.com/rgerganov/footswitch")
93 (commit commit)))
94 (file-name (git-file-name name version))
95 (sha256
96 (base32 "0mg1vr4a9vls5y435w7wdnr1vb5059gy60lvrdfjgzhd2wwf47iw"))))
97 (build-system gnu-build-system)
98 (native-inputs
99 `(("pkg-config" ,pkg-config)))
100 (inputs
101 `(("hidapi" ,hidapi)))
102 (arguments
103 `(#:tests? #f ; no tests
104 #:make-flags (list "CC=gcc")
105 #:phases (modify-phases %standard-phases
106 (delete 'configure)
107 ;; Install target in the Makefile does not work for Guix
108 (replace 'install
109 (lambda* (#:key outputs #:allow-other-keys)
110 (let ((bin (string-append (assoc-ref outputs "out")
111 "/bin")))
112 (mkdir-p bin)
113 (install-file "footswitch" bin)
114 #t))))))
115 (home-page "https://github.com/rgerganov/footswitch")
116 (synopsis "Command line utility for PCsensor foot switch")
117 (description
118 "Command line utility for programming foot switches sold by PCsensor.
119It works for both single pedal devices and three pedal devices. All supported
120devices have vendorId:productId = 0c45:7403 or 0c45:7404.")
121 (license license:expat))))