1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2017 Nils Gillmann <ng0@n0.is>
3 ;;; Copyright © 2017 Stefan Reichör <stefan@xsteve.at>
4 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
6 ;;; This file is part of GNU Guix.
8 ;;; GNU Guix is free software; you can redistribute it and/or modify it
9 ;;; under the terms of the GNU General Public License as published by
10 ;;; the Free Software Foundation; either version 3 of the License, or (at
11 ;;; your option) any later version.
13 ;;; GNU Guix is distributed in the hope that it will be useful, but
14 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ;;; GNU General Public License for more details.
18 ;;; You should have received a copy of the GNU General Public License
19 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
21 (define-module (gnu packages accessibility)
22 #:use-module ((guix licenses) #:prefix license:)
23 #:use-module (guix packages)
24 #:use-module (guix download)
25 #:use-module (guix git-download)
26 #:use-module (guix build-system gnu)
27 #:use-module (guix build-system glib-or-gtk)
28 #:use-module (gnu packages)
29 #:use-module (gnu packages xml)
30 #:use-module (gnu packages gnome)
31 #:use-module (gnu packages gstreamer)
32 #:use-module (gnu packages gtk)
33 #:use-module (gnu packages xorg)
34 #:use-module (gnu packages gettext)
35 #:use-module (gnu packages glib)
36 #:use-module (gnu packages pkg-config)
37 #:use-module (gnu packages libusb))
39 (define-public florence
46 (uri (string-append "mirror://sourceforge/florence/florence/" version
47 "/" name "-" version ".tar.bz2"))
50 "07h9qm22krlwayhzvc391lr23vicw81s48g7rirvx1fj0zyr4aa2"))))
51 (build-system glib-or-gtk-build-system)
53 `(#:configure-flags (list "--with-xtst"
55 "--with-notification")))
57 `(("libxml2" ,libxml2)
58 ("libglade" ,libglade)
60 ("gstreamer" ,gstreamer)
64 ("libxcomposite" ,libxcomposite)
65 ("libnotify" ,libnotify)))
67 `(("gettext-minimal" ,gettext-minimal)
68 ("intltool" ,intltool)
69 ("pkg-config" ,pkg-config)))
70 (home-page "http://florence.sourceforge.net/")
71 (synopsis "Extensible, scalable virtual keyboard for X11")
73 "Florence is an extensible scalable virtual keyboard for X11.
74 It is useful for people who can't use a real hardware keyboard (for
75 example for people with disabilities), but you must be able to use
76 a pointing device (as a mouse, a trackball, a touchscreen or opengazer).
78 Florence stays out of your way when you don't need it: it appears on the
79 screen only when you need it. A timer-based auto-click input method is
80 available to help to click.")
81 ;; The documentation is under FDL1.2, but we do not install the
83 (license license:gpl2+)))
85 (define-public footswitch
86 (let ((commit "ca43d53fc2002520cc825d119702afc124303e73")
90 (version (git-version "0.1" revision commit))
94 (url "https://github.com/rgerganov/footswitch")
96 (file-name (git-file-name name version))
99 "14pyzc4ws1mj859xs9n4x83wzxxvd3bh5bdxzr6nv267xwx1mq68"))))
100 (build-system gnu-build-system)
102 `(("pkg-config" ,pkg-config)))
104 `(("hidapi" ,hidapi)))
106 `(#:tests? #f ; no tests
107 #:make-flags (list "CC=gcc")
108 #:phases (modify-phases %standard-phases
110 ;; Install target in the Makefile does not work for Guix
112 (lambda* (#:key outputs #:allow-other-keys)
113 (let ((bin (string-append (assoc-ref outputs "out")
115 (install-file "footswitch" bin)
116 (install-file "scythe" bin)
118 (home-page "https://github.com/rgerganov/footswitch")
119 (synopsis "Command line utility for PCsensor foot switch")
121 "Command line utility for programming foot switches sold by PCsensor.
122 It works for both single pedal devices and three pedal devices. All supported
123 devices have vendorId:productId = 0c45:7403 or 0c45:7404.")
124 (license license:expat))))