3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/speech-tools/default.nix

42 lines
1,023 B
Nix
Raw Normal View History

{ stdenv, fetchurl, gawk, alsaLib, ncurses }:
stdenv.mkDerivation rec {
name = "speech_tools-${version}";
2018-03-01 00:00:00 +00:00
version = "2.4";
src = fetchurl {
url = "http://www.festvox.org/packed/festival/${version}/${name}-release.tar.gz";
2018-03-01 00:00:00 +00:00
sha256 = "043h4fxfiiqxgwvyyyasylypjkpfzajxd6g5s9wsl69r8hn4ihpv";
};
buildInputs = [ alsaLib ncurses ];
preConfigure = ''
sed -e s@/usr/bin/@@g -i $( grep -rl '/usr/bin/' . )
sed -re 's@/bin/(rm|printf|uname)@\1@g' -i $( grep -rl '/bin/' . )
'';
installPhase = ''
mkdir -p "$out"/{bin,lib}
for d in bin lib; do
for i in ./$d/*; do
test "$(basename "$i")" = "Makefile" ||
cp -r "$(readlink -f $i)" "$out/$d"
done
done
'';
meta = with stdenv.lib; {
description = "Text-to-speech engine";
2018-03-01 00:00:00 +00:00
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
license = licenses.free;
};
2018-03-01 00:00:00 +00:00
passthru = {
updateInfo = {
downloadPage = "http://www.festvox.org/packed/festival/";
};
};
}