2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, alsaLib }:
|
2011-04-08 17:15:44 +01:00
|
|
|
|
2020-12-27 04:20:00 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "flite";
|
|
|
|
version = "2.2";
|
2011-04-08 17:15:44 +01:00
|
|
|
|
2018-03-01 00:00:00 +00:00
|
|
|
src = fetchFromGitHub {
|
2020-12-27 04:20:00 +00:00
|
|
|
owner = "festvox";
|
|
|
|
repo = "flite";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1n0p81jzndzc1rzgm66kw9ls189ricy5v1ps11y0p2fk1p56kbjf";
|
2011-04-08 17:15:44 +01:00
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isLinux [ alsaLib ];
|
2011-04-08 17:15:44 +01:00
|
|
|
|
2018-03-01 00:00:00 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-shared"
|
2021-01-21 17:00:13 +00:00
|
|
|
] ++ lib.optionals stdenv.isLinux [ "--with-audio=alsa" ];
|
2017-11-21 01:12:29 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2011-04-08 17:15:44 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2011-04-08 17:15:44 +01:00
|
|
|
description = "A small, fast run-time speech synthesis engine";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.festvox.org/flite/";
|
2020-12-27 04:20:00 +00:00
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
platforms = platforms.all;
|
2011-04-08 17:15:44 +01:00
|
|
|
};
|
|
|
|
}
|