nixpkgs/pkgs/tools/misc/brltty/default.nix
John Ericson 531e4b80c9 misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs
Only acts on one-line dependency lists.
2017-09-21 15:49:53 -04:00

39 lines
1.3 KiB
Nix

{ stdenv, fetchurl, pkgconfig, alsaSupport, alsaLib ? null, bluez, systemdSupport, systemd ? null }:
assert alsaSupport -> alsaLib != null;
assert systemdSupport -> systemd != null;
stdenv.mkDerivation rec {
name = "brltty-5.5";
src = fetchurl {
url = "http://brltty.com/archive/${name}.tar.gz";
sha256 = "0slrqanwj9cm7ql0rpb296xq676zrc1sjyr13lh5lygp4b8qfpci";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ bluez ]
++ stdenv.lib.optional alsaSupport alsaLib
++ stdenv.lib.optional systemdSupport systemd;
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;
};
preConfigurePhases = [ "preConfigure" ];
preConfigure = ''
substituteInPlace configure --replace /sbin/ldconfig ldconfig
'';
}