brltty: 5.2 -> 5.4

This commit is contained in:
Bram Duvigneau
2016-10-22 22:03:45 +00:00
parent 23cb417447
commit f1d45add3b
4 changed files with 36 additions and 7 deletions
+12 -6
View File
@@ -1,17 +1,21 @@
{ stdenv, fetchurl, pkgconfig, alsaSupport, alsaLib ? null, bluez }:
{ stdenv, fetchurl, pkgconfig, alsaSupport, alsaLib ? null, bluez, systemdSupport, systemd ? null }:
assert alsaSupport -> alsaLib != null;
assert systemdSupport -> systemd != null;
stdenv.mkDerivation rec {
name = "brltty-5.2";
name = "brltty-5.4";
src = fetchurl {
url = "http://brltty.com/archive/${name}.tar.gz";
sha256 = "1zaab5pxkqrv081n23p3am445d30gk0km4azqdirvcpw9z15q0cz";
sha256 = "1993brxa76yf7z3ckax0bbmqv6jp8vjwxp19h425v4gpm0m17k7l";
};
patches = [ ./systemd.patch ];
buildInputs = [ pkgconfig alsaLib bluez ]
++ stdenv.lib.optional alsaSupport alsaLib;
buildInputs = [ pkgconfig bluez ]
++ stdenv.lib.optional alsaSupport alsaLib
++ stdenv.lib.optional systemdSupport systemd;
meta = {
description = "Access software for a blind person using a braille display";
@@ -27,7 +31,9 @@ stdenv.mkDerivation rec {
platforms = stdenv.lib.platforms.all;
};
patchPhase = ''
preConfigurePhases = [ "preConfigure" ];
preConfigure = ''
substituteInPlace configure --replace /sbin/ldconfig ldconfig
'';
}