speechd: 0.11.5 → 0.12.1
https://github.com/brailcom/speechd/releases/tag/0.12.0 https://github.com/brailcom/speechd/releases/tag/0.12.1 The upgrade to `0.12.0` enables building `speechd-minimal` on Darwin.
This commit is contained in:
parent
7b793f256a
commit
5537661d08
@ -36,13 +36,13 @@
|
||||
let
|
||||
inherit (python3Packages) python pyxdg wrapPython;
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "speech-dispatcher";
|
||||
version = "0.11.5";
|
||||
version = "0.12.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/brailcom/speechd/releases/download/${version}/${pname}-${version}.tar.gz";
|
||||
sha256 = "sha256-HOR1n/q7rxrrQzpewHOb4Gdum9+66URKezvhsq8+wSs=";
|
||||
url = "https://github.com/brailcom/speechd/releases/download/${finalAttrs.version}/speech-dispatcher-${finalAttrs.version}.tar.gz";
|
||||
sha256 = "sha256-sUpSONKH0tzOTdQrvWbKZfoijn5oNwgmf3s0A297pLQ=";
|
||||
};
|
||||
|
||||
patches =
|
||||
@ -77,9 +77,11 @@ stdenv.mkDerivation rec {
|
||||
libsndfile
|
||||
libao
|
||||
libpulseaudio
|
||||
alsa-lib
|
||||
python
|
||||
]
|
||||
++ lib.optionals withAlsa [
|
||||
alsa-lib
|
||||
]
|
||||
++ lib.optionals withEspeak [
|
||||
espeak
|
||||
sonic
|
||||
@ -121,7 +123,7 @@ stdenv.mkDerivation rec {
|
||||
"--with-pico"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
postPatch = lib.optionalString withPico ''
|
||||
substituteInPlace src/modules/pico.c --replace "/usr/share/pico/lang" "${svox}/share/pico/lang"
|
||||
'';
|
||||
|
||||
@ -146,7 +148,8 @@ stdenv.mkDerivation rec {
|
||||
berce
|
||||
jtojnar
|
||||
];
|
||||
platforms = platforms.linux;
|
||||
# TODO: remove checks for `withPico` once PR #375450 is merged
|
||||
platforms = if withAlsa || withPico then platforms.linux else platforms.unix;
|
||||
mainProgram = "speech-dispatcher";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user