Commit | Line | Data |
---|---|---|
574e4e16 | 1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2017 ng0 <ng0@no-reply.pragmatique.xyz> | |
18a26f1c | 3 | ;;; Copyright © 2017 Stefan Reichör <stefan@xsteve.at> |
574e4e16 | 4 | ;;; |
5 | ;;; This file is part of GNU Guix. | |
6 | ;;; | |
7 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
8 | ;;; under the terms of the GNU General Public License as published by | |
9 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
10 | ;;; your option) any later version. | |
11 | ;;; | |
12 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
13 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | ;;; GNU General Public License for more details. | |
16 | ;;; | |
17 | ;;; You should have received a copy of the GNU General Public License | |
18 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
19 | ||
20 | (define-module (gnu packages accessibility) | |
21 | #:use-module ((guix licenses) #:prefix license:) | |
22 | #:use-module (guix packages) | |
23 | #:use-module (guix download) | |
18a26f1c SR |
24 | #:use-module (guix git-download) |
25 | #:use-module (guix build-system gnu) | |
574e4e16 | 26 | #:use-module (guix build-system glib-or-gtk) |
27 | #:use-module (gnu packages) | |
28 | #:use-module (gnu packages xml) | |
29 | #:use-module (gnu packages gnome) | |
30 | #:use-module (gnu packages gstreamer) | |
31 | #:use-module (gnu packages gtk) | |
32 | #:use-module (gnu packages xorg) | |
33 | #:use-module (gnu packages gettext) | |
34 | #:use-module (gnu packages glib) | |
18a26f1c SR |
35 | #:use-module (gnu packages pkg-config) |
36 | #:use-module (gnu packages libusb)) | |
574e4e16 | 37 | |
38 | (define-public florence | |
39 | (package | |
40 | (name "florence") | |
41 | (version "0.6.3") | |
42 | (source | |
43 | (origin | |
44 | (method url-fetch) | |
45 | (uri (string-append "mirror://sourceforge/florence/florence/" version | |
46 | "/" name "-" version ".tar.bz2")) | |
47 | (sha256 | |
48 | (base32 | |
49 | "07h9qm22krlwayhzvc391lr23vicw81s48g7rirvx1fj0zyr4aa2")))) | |
50 | (build-system glib-or-gtk-build-system) | |
51 | (arguments | |
52 | `(#:configure-flags (list "--with-xtst" | |
53 | "--without-docs" | |
54 | "--with-notification"))) | |
55 | (inputs | |
56 | `(("libxml2" ,libxml2) | |
57 | ("libglade" ,libglade) | |
58 | ("librsvg" ,librsvg) | |
59 | ("gstreamer" ,gstreamer) | |
60 | ("cairo" ,cairo) | |
61 | ("gtk+" ,gtk+) | |
62 | ("libxtst" ,libxtst) | |
63 | ("libxcomposite" ,libxcomposite) | |
64 | ("libnotify" ,libnotify))) | |
65 | (native-inputs | |
66 | `(("gettext-minimal" ,gettext-minimal) | |
67 | ("intltool" ,intltool) | |
68 | ("pkg-config" ,pkg-config))) | |
69 | (home-page "http://florence.sourceforge.net/") | |
70 | (synopsis "Extensible, scalable virtual keyboard for X11") | |
71 | (description | |
72 | "Florence is an extensible scalable virtual keyboard for X11. | |
73 | It is useful for people who can't use a real hardware keyboard (for | |
74 | example for people with disabilities), but you must be able to use | |
75 | a pointing device (as a mouse, a trackball, a touchscreen or opengazer). | |
76 | ||
77 | Florence stays out of your way when you don't need it: it appears on the | |
78 | screen only when you need it. A timer-based auto-click input method is | |
79 | available to help to click.") | |
80 | ;; The documentation is under FDL1.2, but we do not install the | |
81 | ;; documentation. | |
82 | (license license:gpl2+))) | |
18a26f1c SR |
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. | |
119 | It works for both single pedal devices and three pedal devices. All supported | |
120 | devices have vendorId:productId = 0c45:7403 or 0c45:7404.") | |
121 | (license license:expat)))) |