1{ stdenv, fetchurl, pkgconfig, alsaSupport, alsaLib ? null, bluez }:
2
3assert alsaSupport -> alsaLib != null;
4
5stdenv.mkDerivation rec {
6 name = "brltty-5.2";
7
8 src = fetchurl {
9 url = "http://brltty.com/archive/${name}.tar.gz";
10 sha256 = "1zaab5pxkqrv081n23p3am445d30gk0km4azqdirvcpw9z15q0cz";
11 };
12
13 buildInputs = [ pkgconfig alsaLib bluez ]
14 ++ stdenv.lib.optional alsaSupport alsaLib;
15
16 meta = {
17 description = "Access software for a blind person using a braille display";
18 longDescription = ''
19 BRLTTY is a background process (daemon) which provides access to the Linux/Unix
20 console (when in text mode) for a blind person using a refreshable braille display.
21 It drives the braille display, and provides complete screen review functionality.
22 Some speech capability has also been incorporated.
23 '';
24 homepage = http://www.brltty.com/;
25 license = stdenv.lib.licenses.gpl2;
26 maintainers = [ stdenv.lib.maintainers.bramd ];
27 platforms = stdenv.lib.platforms.all;
28 };
29
30 patchPhase = ''
31 substituteInPlace configure --replace /sbin/ldconfig ldconfig
32 '';
33}