2016-09-16 15:10:45 +00:00
|
|
|
{stdenv, fetchurl, apacheAnt, unzip, sharutils, lib, jdk}:
|
2009-10-01 14:48:57 +00:00
|
|
|
|
2021-06-20 14:15:21 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "freetts";
|
|
|
|
version = "1.2.2";
|
2009-10-01 14:48:57 +00:00
|
|
|
src = fetchurl {
|
2021-06-20 14:15:21 +00:00
|
|
|
url = "mirror://sourceforge/freetts/${pname}-${version}-src.zip";
|
2009-10-01 14:48:57 +00:00
|
|
|
sha256 = "0mnikqhpf4f4jdr0irmibr8yy0dnffx1i257y22iamxi7a6by2r7";
|
|
|
|
};
|
2021-02-20 21:01:53 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
buildInputs = [ apacheAnt sharutils jdk ];
|
2009-10-01 14:48:57 +00:00
|
|
|
unpackPhase = ''
|
|
|
|
unzip $src -x META-INF/*
|
|
|
|
'';
|
2016-09-16 15:10:45 +00:00
|
|
|
|
2009-10-01 14:48:57 +00:00
|
|
|
buildPhase = ''
|
|
|
|
cd */lib
|
|
|
|
sed -i -e "s/more/cat/" jsapi.sh
|
|
|
|
echo y | sh jsapi.sh
|
|
|
|
cd ..
|
|
|
|
ln -s . src
|
|
|
|
ant
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
install -v -m755 -d $out/{lib,docs/{audio,images}}
|
|
|
|
install -v -m644 lib/*.jar $out/lib
|
|
|
|
'';
|
2016-09-16 15:10:45 +00:00
|
|
|
|
2009-10-01 14:48:57 +00:00
|
|
|
meta = {
|
|
|
|
description = "Text to speech system based on Festival written in Java";
|
|
|
|
longDescription = ''
|
|
|
|
Text to speech system based on Festival written in Java.
|
|
|
|
Can be used in combination with KDE accessibility.
|
|
|
|
'';
|
|
|
|
license = "GPL";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://freetts.sourceforge.net";
|
2009-10-01 14:48:57 +00:00
|
|
|
maintainers = [ lib.maintainers.sander ];
|
|
|
|
};
|
|
|
|
}
|