2016-10-22 22:12:30 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, alsaSupport, alsaLib ? null, bluez, systemdSupport, systemd ? null }:
|
2015-04-29 23:02:09 +02:00
|
|
|
|
|
|
|
assert alsaSupport -> alsaLib != null;
|
2016-10-22 22:12:30 +02:00
|
|
|
assert systemdSupport -> systemd != null;
|
2015-04-29 23:02:09 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-10-22 22:12:30 +02:00
|
|
|
name = "brltty-5.4";
|
2015-04-29 23:02:09 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://brltty.com/archive/${name}.tar.gz";
|
2016-10-22 22:12:30 +02:00
|
|
|
sha256 = "1993brxa76yf7z3ckax0bbmqv6jp8vjwxp19h425v4gpm0m17k7l";
|
2015-04-29 23:02:09 +02:00
|
|
|
};
|
2016-10-22 22:12:30 +02:00
|
|
|
|
|
|
|
patches = [ ./systemd.patch ];
|
2015-04-29 23:02:09 +02:00
|
|
|
|
2016-10-22 22:12:30 +02:00
|
|
|
buildInputs = [ pkgconfig bluez ]
|
|
|
|
++ stdenv.lib.optional alsaSupport alsaLib
|
|
|
|
++ stdenv.lib.optional systemdSupport systemd;
|
2015-04-29 23:02:09 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Access software for a blind person using a braille display";
|
|
|
|
longDescription = ''
|
|
|
|
BRLTTY is a background process (daemon) which provides access to the Linux/Unix
|
|
|
|
console (when in text mode) for a blind person using a refreshable braille display.
|
|
|
|
It drives the braille display, and provides complete screen review functionality.
|
|
|
|
Some speech capability has also been incorporated.
|
|
|
|
'';
|
|
|
|
homepage = http://www.brltty.com/;
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.bramd ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
|
2016-10-22 22:12:30 +02:00
|
|
|
preConfigurePhases = [ "preConfigure" ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2015-04-29 23:02:09 +02:00
|
|
|
substituteInPlace configure --replace /sbin/ldconfig ldconfig
|
|
|
|
'';
|
|
|
|
}
|