Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
65 lines
1.3 KiB
Nix
65 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
|
|
];
|
|
};
|
|
})
|