2015-06-25 21:57:31 +01:00
|
|
|
{ stdenv, fetchurl, gawk, alsaLib, ncurses }:
|
2011-05-25 10:04:54 +01:00
|
|
|
|
2015-06-25 21:57:31 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "speech_tools-${version}";
|
2018-03-01 00:00:00 +00:00
|
|
|
version = "2.4";
|
2011-05-25 10:04:54 +01:00
|
|
|
|
2015-06-25 21:57:31 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.festvox.org/packed/festival/${version}/${name}-release.tar.gz";
|
2018-03-01 00:00:00 +00:00
|
|
|
sha256 = "043h4fxfiiqxgwvyyyasylypjkpfzajxd6g5s9wsl69r8hn4ihpv";
|
2015-06-25 21:57:31 +01:00
|
|
|
};
|
2011-05-25 10:04:54 +01:00
|
|
|
|
2015-06-25 21:57:31 +01:00
|
|
|
buildInputs = [ alsaLib ncurses ];
|
2014-11-06 00:44:33 +00:00
|
|
|
|
2015-06-25 21:57:31 +01:00
|
|
|
preConfigure = ''
|
2011-05-25 10:04:54 +01: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/' . )
|
2015-06-25 21:57:31 +01:00
|
|
|
'';
|
2011-05-25 10:04:54 +01:00
|
|
|
|
2015-06-25 21:57:31 +01:00
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p "$out"/{bin,lib}
|
2011-05-25 10:04:54 +01: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 21:57:31 +01:00
|
|
|
'';
|
2011-05-25 10:04:54 +01:00
|
|
|
|
2015-06-25 21:57:31 +01:00
|
|
|
meta = with stdenv.lib; {
|
2011-05-25 10:04:54 +01:00
|
|
|
description = "Text-to-speech engine";
|
2018-03-01 00:00:00 +00:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2015-06-25 21:57:31 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.free;
|
2011-05-25 10:04:54 +01:00
|
|
|
};
|
2018-03-01 00:00:00 +00:00
|
|
|
|
2011-05-25 10:04:54 +01:00
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://www.festvox.org/packed/festival/";
|
|
|
|
};
|
|
|
|
};
|
2015-06-25 21:57:31 +01:00
|
|
|
}
|