2021-01-17 04:51:22 +01:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, python3, bluez
|
2019-02-03 16:31:22 +01:00
|
|
|
, alsaSupport ? stdenv.isLinux, alsaLib ? null
|
|
|
|
, systemdSupport ? stdenv.isLinux, 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 {
|
2020-04-09 12:47:21 +02:00
|
|
|
name = "brltty-6.1";
|
2017-12-25 06:46:30 +01:00
|
|
|
|
2015-04-29 23:02:09 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://brltty.com/archive/${name}.tar.gz";
|
2020-04-09 12:47:21 +02:00
|
|
|
sha256 = "0nk54chr7z2w579vyiak9xk2avhnvrx7x2l5sk8nyw2zplchkx9q";
|
2015-04-29 23:02:09 +02:00
|
|
|
};
|
2017-12-25 06:46:30 +01:00
|
|
|
|
2021-01-17 04:51:22 +01:00
|
|
|
nativeBuildInputs = [ pkg-config python3.pkgs.cython ];
|
2017-09-05 23:26:13 +02:00
|
|
|
buildInputs = [ bluez ]
|
2021-01-15 10:19:50 +01:00
|
|
|
++ lib.optional alsaSupport alsaLib
|
|
|
|
++ lib.optional systemdSupport systemd;
|
2017-12-25 06:46:30 +01:00
|
|
|
|
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.
|
2017-12-25 06:46:30 +01:00
|
|
|
Some speech capability has also been incorporated.
|
2015-04-29 23:02:09 +02:00
|
|
|
'';
|
2020-04-09 12:47:21 +02:00
|
|
|
homepage = "http://www.brltty.com/";
|
2021-01-15 10:19:50 +01:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [ lib.maintainers.bramd ];
|
|
|
|
platforms = lib.platforms.all;
|
2015-04-29 23:02:09 +02:00
|
|
|
};
|
2017-12-25 06:46:30 +01:00
|
|
|
|
|
|
|
makeFlags = [ "PYTHON_PREFIX=$(out)" ];
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
}
|