nixpkgs/pkgs/by-name/fr/freetts/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchzip
, ant
, jdk8
, sharutils
, stripJavaArchivesHook
}:
stdenv.mkDerivation (finalAttrs: {
2021-06-20 14:15:21 +00:00
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
'';
2016-09-16 15:10:45 +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.
'';
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
];
};
})