1 { lib, stdenv, fetchurl, alsaLib, ncurses }:
3 stdenv.mkDerivation rec {
4 name = "speech_tools-${version}.0";
8 url = "http://www.festvox.org/packed/festival/${version}/${name}-release.tar.gz";
9 sha256 = "1k2xh13miyv48gh06rgsq2vj25xwj7z6vwq9ilsn8i7ig3nrgzg4";
12 buildInputs = [ alsaLib ncurses ];
15 sed -e s@/usr/bin/@@g -i $( grep -rl '/usr/bin/' . )
16 sed -re 's@/bin/(rm|printf|uname)@\1@g' -i $( grep -rl '/bin/' . )
18 # c99 makes isnan valid for float and double
19 substituteInPlace include/EST_math.h \
20 --replace '__isnanf(X)' 'isnan(X)'
24 mkdir -p "$out"/{bin,lib}
27 test "$(basename "$i")" = "Makefile" ||
28 cp -r "$(readlink -f $i)" "$out/$d"
38 description = "Text-to-speech engine";
39 maintainers = with maintainers; [ raskin ];
40 platforms = platforms.linux;
41 license = licenses.free;
46 downloadPage = "http://www.festvox.org/packed/festival/";