depot/third_party/nixpkgs/pkgs/development/libraries/freetts/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

63 lines
1.3 KiB
Nix

{ lib
, stdenv
, fetchzip
, ant
, jdk8
, sharutils
, stripJavaArchivesHook
}:
stdenv.mkDerivation (finalAttrs: {
pname = "freetts";
version = "1.2.2";
src = fetchzip {
url = "mirror://sourceforge/freetts/freetts-${finalAttrs.version}-src.zip";
hash = "sha256-+bhM0ErEZVnmcz5CBqn/AeGaOhKnCjZzGeqgO/89wms=";
stripRoot = false;
};
nativeBuildInputs = [
ant
jdk8
sharutils
stripJavaArchivesHook
];
sourceRoot = "${finalAttrs.src.name}/freetts-${finalAttrs.version}";
buildPhase = ''
runHook preBuild
pushd lib
sed -i -e "s/more/cat/" jsapi.sh
echo y | sh jsapi.sh
popd
ln -s . src
ant
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -Dm644 lib/*.jar -t $out/lib
runHook postInstall
'';
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.
'';
homepage = "http://freetts.sourceforge.net";
license = lib.licenses.bsdOriginal;
maintainers = with lib.maintainers; [ sander ];
sourceProvenance = with lib.sourceTypes; [
fromSource
binaryBytecode # jsapi.jar is bundled in a self-extracting shell-script
];
};
})