brltty: move defaults to package file, use ALSA on Linux

This commit is contained in:
Jan Malakhovski 2019-02-03 15:31:22 +00:00
parent 9361acfff1
commit 578408aa16
2 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,6 @@
{ stdenv, fetchurl, pkgconfig, python3, alsaSupport, alsaLib ? null, bluez, systemdSupport, systemd ? null }:
{ stdenv, fetchurl, pkgconfig, python3, bluez
, alsaSupport ? stdenv.isLinux, alsaLib ? null
, systemdSupport ? stdenv.isLinux, systemd ? null }:
assert alsaSupport -> alsaLib != null;
assert systemdSupport -> systemd != null;

View file

@ -967,10 +967,8 @@ in
brigand = callPackage ../development/libraries/brigand { };
brltty = callPackage ../tools/misc/brltty {
alsaSupport = (!stdenv.isDarwin);
systemdSupport = stdenv.isLinux;
};
brltty = callPackage ../tools/misc/brltty { };
bro = callPackage ../applications/networking/ids/bro { };
bruteforce-luks = callPackage ../tools/security/bruteforce-luks { };