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