nixpkgs/pkgs/development/libraries/freetts/default.nix

38 lines
990 B
Nix
Raw Normal View History

2016-09-16 16:10:45 +01:00
{stdenv, fetchurl, apacheAnt, unzip, sharutils, lib, jdk}:
stdenv.mkDerivation {
name = "freetts-1.2.2";
src = fetchurl {
url = "mirror://sourceforge/freetts/freetts-1.2.2-src.zip";
sha256 = "0mnikqhpf4f4jdr0irmibr8yy0dnffx1i257y22iamxi7a6by2r7";
};
2016-09-16 16:10:45 +01:00
buildInputs = [ apacheAnt unzip sharutils jdk ];
unpackPhase = ''
unzip $src -x META-INF/*
'';
2016-09-16 16:10:45 +01: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 16:10:45 +01: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";
homepage = "http://freetts.sourceforge.net";
maintainers = [ lib.maintainers.sander ];
};
}