summary refs log tree commit diff
path: root/pkgs/applications/audio/eflite/default.nix
blob: 36fbdbc2cc9e135d1ebe902e1a13fd9e460db633 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{stdenv,fetchurl,flite,alsaLib,debug ? false}:

stdenv.mkDerivation rec {
  name = "eflite-${version}";
  version = "0.4.1";
  src = fetchurl {
    url = "https://sourceforge.net/projects/eflite/files/eflite/${version}/${name}.tar.gz";
    sha256 = "088p9w816s02s64grfs28gai3lnibzdjb9d1jwxzr8smbs2qbbci";
  };
  buildInputs = [ flite alsaLib ];
  configureFlags = "flite_dir=${flite} --with-audio=alsa --with-vox=cmu_us_kal16";
  patches = [
    ./buf-overflow.patch
    ./cvs-update.patch
    ./link.patch
    ./format.patch
  ]; # Patches are taken from debian.
  CFLAGS = stdenv.lib.optionalString debug " -DDEBUG=2";
  meta = {
    homepage = http://eflite.sourceforge.net;
    description = "EFlite is a speech server for screen readers";
    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.
    '';
    license = stdenv.lib.licenses.gpl2;
    platforms = stdenv.lib.platforms.linux;
    maintainers = with stdenv.lib.maintainers; [ jhhuh ];
  };
}