brltty: 5.2 -> 5.4
This commit is contained in:
@@ -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
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user