nixpkgs/pkgs/tools/misc/brltty/default.nix

44 lines
1.4 KiB
Nix
Raw Normal View History

2021-01-16 19:51:22 -08:00
{ lib, stdenv, fetchurl, pkg-config, python3, bluez
, alsaSupport ? stdenv.isLinux, alsaLib ? null
, systemdSupport ? stdenv.isLinux, systemd ? null }:
2015-04-29 14:02:09 -07:00
assert alsaSupport -> alsaLib != null;
2016-10-22 13:12:30 -07:00
assert systemdSupport -> systemd != null;
2015-04-29 14:02:09 -07:00
stdenv.mkDerivation rec {
2021-02-28 23:55:29 -08:00
pname = "brltty";
version = "6.3";
2017-12-24 21:46:30 -08:00
2015-04-29 14:02:09 -07:00
src = fetchurl {
2021-02-28 23:55:29 -08:00
url = "https://brltty.app/archive/${pname}-${version}.tar.gz";
sha256 = "14psxwlvgyi2fj1zh8rfykyjcjaya8xa7yg574bxd8y8n49n8hvb";
2015-04-29 14:02:09 -07:00
};
2017-12-24 21:46:30 -08:00
2021-01-16 19:51:22 -08:00
nativeBuildInputs = [ pkg-config python3.pkgs.cython ];
buildInputs = [ bluez ]
2021-01-15 01:19:50 -08:00
++ lib.optional alsaSupport alsaLib
++ lib.optional systemdSupport systemd;
2017-12-24 21:46:30 -08:00
2015-04-29 14:02:09 -07: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-24 21:46:30 -08:00
Some speech capability has also been incorporated.
2015-04-29 14:02:09 -07:00
'';
2021-02-28 23:55:29 -08:00
homepage = "https://brltty.app";
2021-01-15 01:19:50 -08:00
license = lib.licenses.gpl2;
maintainers = [ lib.maintainers.bramd ];
platforms = lib.platforms.all;
2015-04-29 14:02:09 -07:00
};
2017-12-24 21:46:30 -08:00
makeFlags = [ "PYTHON_PREFIX=$(out)" ];
2016-10-22 13:12:30 -07:00
preConfigurePhases = [ "preConfigure" ];
preConfigure = ''
2015-04-29 14:02:09 -07:00
substituteInPlace configure --replace /sbin/ldconfig ldconfig
'';
}