2019-02-03 15:31:22 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, python3, bluez
|
|
|
|
, alsaSupport ? stdenv.isLinux, alsaLib ? null
|
|
|
|
, systemdSupport ? stdenv.isLinux, systemd ? null }:
|
2015-04-29 22:02:09 +01:00
|
|
|
|
|
|
|
assert alsaSupport -> alsaLib != null;
|
2016-10-22 21:12:30 +01:00
|
|
|
assert systemdSupport -> systemd != null;
|
2015-04-29 22:02:09 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-21 07:02:04 +00:00
|
|
|
name = "brltty-6.0";
|
2017-12-25 05:46:30 +00:00
|
|
|
|
2015-04-29 22:02:09 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://brltty.com/archive/${name}.tar.gz";
|
2019-03-21 07:02:04 +00:00
|
|
|
sha256 = "0lmp9ab8gp4yv8m3qx4gxns3prrh7kvh8sfcd6vc45h40cgcsjxg";
|
2015-04-29 22:02:09 +01:00
|
|
|
};
|
2017-12-25 05:46:30 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig python3.pkgs.cython ];
|
2017-09-05 22:26:13 +01:00
|
|
|
buildInputs = [ bluez ]
|
2016-10-22 21:12:30 +01:00
|
|
|
++ stdenv.lib.optional alsaSupport alsaLib
|
|
|
|
++ stdenv.lib.optional systemdSupport systemd;
|
2017-12-25 05:46:30 +00:00
|
|
|
|
2015-04-29 22:02:09 +01: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.
|
2017-12-25 05:46:30 +00:00
|
|
|
Some speech capability has also been incorporated.
|
2015-04-29 22:02:09 +01:00
|
|
|
'';
|
|
|
|
homepage = http://www.brltty.com/;
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.bramd ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
2017-12-25 05:46:30 +00:00
|
|
|
|
|
|
|
makeFlags = [ "PYTHON_PREFIX=$(out)" ];
|
|
|
|
|
2016-10-22 21:12:30 +01:00
|
|
|
preConfigurePhases = [ "preConfigure" ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2015-04-29 22:02:09 +01:00
|
|
|
substituteInPlace configure --replace /sbin/ldconfig ldconfig
|
|
|
|
'';
|
|
|
|
}
|