2021-01-15 13:21:58 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, flite, alsaLib, debug ? false }:
|
2017-03-01 15:22:25 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "eflite";
|
2017-03-01 15:22:25 +00:00
|
|
|
version = "0.4.1";
|
2018-03-01 00:00:00 +00:00
|
|
|
|
2017-03-01 15:22:25 +00:00
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://sourceforge.net/projects/eflite/files/eflite/${version}/${pname}-${version}.tar.gz";
|
2017-03-01 15:22:25 +00:00
|
|
|
sha256 = "088p9w816s02s64grfs28gai3lnibzdjb9d1jwxzr8smbs2qbbci";
|
|
|
|
};
|
2018-03-01 00:00:00 +00:00
|
|
|
|
2017-03-01 15:22:25 +00:00
|
|
|
buildInputs = [ flite alsaLib ];
|
2018-03-01 00:00:00 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"flite_dir=${flite}"
|
|
|
|
"--with-audio=alsa"
|
|
|
|
"--with-vox=cmu_us_kal16"
|
|
|
|
];
|
|
|
|
|
2017-03-01 15:22:25 +00:00
|
|
|
patches = [
|
2018-03-01 00:00:00 +00:00
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.org/data/main/e/eflite/0.4.1-8/debian/patches/cvs-update";
|
|
|
|
sha256 = "0r631vzmky7b7qyhm152557y4fr0xqrpi3y4w66fcn6p4rj03j05";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.org/data/main/e/eflite/0.4.1-8/debian/patches/buf-overflow";
|
|
|
|
sha256 = "071qk133kb7n7bq6kxgh3p9bba6hcl1ixsn4lx8vp8klijgrvkmx";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.org/data/main/e/eflite/0.4.1-8/debian/patches/link";
|
|
|
|
sha256 = "0p833dp4pdsya72bwh3syvkq85927pm6snxvx13lvcppisbhj0fc";
|
|
|
|
})
|
2017-03-01 15:22:25 +00:00
|
|
|
./format.patch
|
2018-03-01 00:00:00 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
CFLAGS = lib.optionalString debug " -DDEBUG=2";
|
2018-03-01 00:00:00 +00:00
|
|
|
|
2017-03-01 15:22:25 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://eflite.sourceforge.net";
|
2020-10-26 04:08:40 +00:00
|
|
|
description = "Speech server for screen readers";
|
2017-03-01 15:22:25 +00:00
|
|
|
longDescription = ''
|
|
|
|
EFlite is a speech server for Emacspeak and other screen
|
|
|
|
readers that allows them to interface with Festival Lite,
|
|
|
|
a free text-to-speech engine developed at the CMU Speech
|
|
|
|
Center as an off-shoot of Festival.
|
|
|
|
'';
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ jhhuh ];
|
2017-03-01 15:22:25 +00:00
|
|
|
};
|
|
|
|
}
|