2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchurl, alsaLib, ncurses }:
|
2011-05-25 11:04:54 +02:00
|
|
|
|
2015-06-25 22:57:31 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-15 07:11:10 +01:00
|
|
|
name = "speech_tools-${version}.0";
|
|
|
|
version = "2.5";
|
2011-05-25 11:04:54 +02:00
|
|
|
|
2015-06-25 22:57:31 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.festvox.org/packed/festival/${version}/${name}-release.tar.gz";
|
2018-03-15 07:11:10 +01:00
|
|
|
sha256 = "1k2xh13miyv48gh06rgsq2vj25xwj7z6vwq9ilsn8i7ig3nrgzg4";
|
2015-06-25 22:57:31 +02:00
|
|
|
};
|
2011-05-25 11:04:54 +02:00
|
|
|
|
2015-06-25 22:57:31 +02:00
|
|
|
buildInputs = [ alsaLib ncurses ];
|
2014-11-06 01:44:33 +01:00
|
|
|
|
2015-06-25 22:57:31 +02:00
|
|
|
preConfigure = ''
|
2011-05-25 11:04:54 +02:00
|
|
|
sed -e s@/usr/bin/@@g -i $( grep -rl '/usr/bin/' . )
|
|
|
|
sed -re 's@/bin/(rm|printf|uname)@\1@g' -i $( grep -rl '/bin/' . )
|
2018-03-15 07:23:22 +01:00
|
|
|
|
|
|
|
# c99 makes isnan valid for float and double
|
|
|
|
substituteInPlace include/EST_math.h \
|
|
|
|
--replace '__isnanf(X)' 'isnan(X)'
|
2015-06-25 22:57:31 +02:00
|
|
|
'';
|
2011-05-25 11:04:54 +02:00
|
|
|
|
2015-06-25 22:57:31 +02:00
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$out"/{bin,lib}
|
2011-05-25 11:04:54 +02:00
|
|
|
for d in bin lib; do
|
|
|
|
for i in ./$d/*; do
|
|
|
|
test "$(basename "$i")" = "Makefile" ||
|
|
|
|
cp -r "$(readlink -f $i)" "$out/$d"
|
|
|
|
done
|
|
|
|
done
|
2015-06-25 22:57:31 +02:00
|
|
|
'';
|
2011-05-25 11:04:54 +02:00
|
|
|
|
2018-03-15 07:23:54 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkTarget = "test";
|
|
|
|
|
2015-06-25 22:57:31 +02:00
|
|
|
meta = with stdenv.lib; {
|
2011-05-25 11:04:54 +02:00
|
|
|
description = "Text-to-speech engine";
|
2018-03-01 01:00:00 +01:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2015-06-25 22:57:31 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.free;
|
2011-05-25 11:04:54 +02:00
|
|
|
};
|
2018-03-01 01:00:00 +01:00
|
|
|
|
2011-05-25 11:04:54 +02:00
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://www.festvox.org/packed/festival/";
|
|
|
|
};
|
|
|
|
};
|
2015-06-25 22:57:31 +02:00
|
|
|
}
|