about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/freetts
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/freetts')
-rw-r--r--nixpkgs/pkgs/development/libraries/freetts/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/freetts/default.nix b/nixpkgs/pkgs/development/libraries/freetts/default.nix
new file mode 100644
index 000000000000..8c6f60b98010
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/freetts/default.nix
@@ -0,0 +1,37 @@
+{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";
+  };
+  buildInputs = [ apacheAnt unzip sharutils jdk ];
+  unpackPhase = ''
+    unzip $src -x META-INF/*
+  '';
+
+  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
+  '';
+
+  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 ];
+  };
+}