Jan Tojnar 2020-01-30 19:12:36 +01:00
parent 6d799c394c
commit 9d886869cb
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
2 changed files with 28 additions and 5 deletions

View File

@ -1,11 +1,13 @@
{ stdenv { stdenv
, substituteAll
, pkgconfig , pkgconfig
, fetchurl , fetchurl
, python3Packages , python3Packages
, intltool , gettext
, itstool , itstool
, libtool , libtool
, texinfo , texinfo
, utillinux
, autoreconfHook , autoreconfHook
, glib , glib
, dotconf , dotconf
@ -37,17 +39,24 @@ 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";
}; };
patches = [
(substituteAll {
src = ./fix-paths.patch;
inherit utillinux;
})
];
nativeBuildInputs = [ nativeBuildInputs = [
pkgconfig pkgconfig
autoreconfHook autoreconfHook
intltool gettext
libtool libtool
itstool itstool
texinfo texinfo
@ -79,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"
@ -98,6 +108,8 @@ 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";

View File

@ -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