Merge pull request #78918 from jtojnar/speechd-0.9
speechd: 0.8.8 → 0.9.1
This commit is contained in:
@@ -1,6 +1,17 @@
|
|||||||
{ stdenv, pkgconfig, fetchurl, python3Packages
|
{ stdenv
|
||||||
, intltool, itstool, libtool, texinfo, autoreconfHook
|
, substituteAll
|
||||||
, glib, dotconf, libsndfile
|
, pkgconfig
|
||||||
|
, fetchurl
|
||||||
|
, python3Packages
|
||||||
|
, gettext
|
||||||
|
, itstool
|
||||||
|
, libtool
|
||||||
|
, texinfo
|
||||||
|
, utillinux
|
||||||
|
, autoreconfHook
|
||||||
|
, glib
|
||||||
|
, dotconf
|
||||||
|
, libsndfile
|
||||||
, withLibao ? true, libao
|
, withLibao ? true, libao
|
||||||
, withPulse ? false, libpulseaudio
|
, withPulse ? false, libpulseaudio
|
||||||
, withAlsa ? false, alsaLib
|
, withAlsa ? false, alsaLib
|
||||||
@@ -28,18 +39,43 @@ let
|
|||||||
throw "You need to enable at least one output module.";
|
throw "You need to enable at least one output module.";
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
pname = "speech-dispatcher";
|
pname = "speech-dispatcher";
|
||||||
version = "0.8.8";
|
version = "0.9.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://www.freebsoft.org/pub/projects/speechd/${pname}-${version}.tar.gz";
|
url = "https://github.com/brailcom/speechd/releases/download/${version}/${pname}-${version}.tar.gz";
|
||||||
sha256 = "1wvck00w9ixildaq6hlhnf6wa576y02ac96lp6932h3k1n08jaiw";
|
hash = "sha256:16bg52hnkrsrs7kgbzanb34b9zb6fqxwj0a9bmsxmj1skkil1h1p";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig autoreconfHook intltool libtool itstool texinfo wrapPython ];
|
patches = [
|
||||||
|
(substituteAll {
|
||||||
|
src = ./fix-paths.patch;
|
||||||
|
inherit utillinux;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [ glib dotconf libsndfile libao libpulseaudio alsaLib python ]
|
nativeBuildInputs = [
|
||||||
++ optionals withEspeak [ espeak sonic pcaudiolib ]
|
pkgconfig
|
||||||
++ optional withFlite flite
|
autoreconfHook
|
||||||
|
gettext
|
||||||
|
libtool
|
||||||
|
itstool
|
||||||
|
texinfo
|
||||||
|
wrapPython
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
glib
|
||||||
|
dotconf
|
||||||
|
libsndfile
|
||||||
|
libao
|
||||||
|
libpulseaudio
|
||||||
|
alsaLib
|
||||||
|
python
|
||||||
|
] ++ optionals withEspeak [
|
||||||
|
espeak
|
||||||
|
sonic
|
||||||
|
pcaudiolib
|
||||||
|
] ++ optional withFlite flite
|
||||||
++ optional withPico svox
|
++ optional withPico svox
|
||||||
# TODO: add flint/festival support with festival-freebsoft-utils package
|
# TODO: add flint/festival support with festival-freebsoft-utils package
|
||||||
# ++ optional withFestival festival-freebsoft-utils
|
# ++ optional withFestival festival-freebsoft-utils
|
||||||
@@ -52,6 +88,7 @@ in stdenv.mkDerivation rec {
|
|||||||
configureFlags = [
|
configureFlags = [
|
||||||
# Audio method falls back from left to right.
|
# Audio method falls back from left to right.
|
||||||
"--with-default-audio-method=\"libao,pulse,alsa,oss\""
|
"--with-default-audio-method=\"libao,pulse,alsa,oss\""
|
||||||
|
"--with-systemdsystemunitdir=${placeholder ''out''}/lib/systemd/system"
|
||||||
] ++ optional withPulse "--with-pulse"
|
] ++ optional withPulse "--with-pulse"
|
||||||
++ optional withAlsa "--with-alsa"
|
++ optional withAlsa "--with-alsa"
|
||||||
++ optional withLibao "--with-libao"
|
++ optional withLibao "--with-libao"
|
||||||
@@ -71,9 +108,11 @@ in stdenv.mkDerivation rec {
|
|||||||
wrapPythonPrograms
|
wrapPythonPrograms
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Common interface to speech synthesis";
|
description = "Common interface to speech synthesis";
|
||||||
homepage = https://devel.freebsoft.org/speechd;
|
homepage = "https://devel.freebsoft.org/speechd";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = with maintainers; [ berce ];
|
maintainers = with maintainers; [ berce ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
--- a/speech-dispatcherd.service.in
|
||||||
|
+++ b/speech-dispatcherd.service.in
|
||||||
|
@@ -19,7 +19,7 @@
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
ExecStart=@bindir@/speech-dispatcher -d
|
||||||
|
-ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
+ExecReload=@utillinux@/bin/kill -HUP $MAINPID
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user