2011-05-25 10:04:54 +01:00
|
|
|
x@{builderDefsPackage
|
|
|
|
, gawk, alsaLib, ncurses
|
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
2014-11-06 00:44:33 +00:00
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
2011-05-25 10:04:54 +01:00
|
|
|
[];
|
|
|
|
|
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
|
|
sourceInfo = rec {
|
|
|
|
baseName="speech_tools";
|
|
|
|
version="2.1";
|
|
|
|
name="${baseName}-${version}";
|
|
|
|
url="http://www.festvox.org/packed/festival/${version}/${name}-release.tar.gz";
|
|
|
|
hash="1s9bkfgdgyas8v2cr7x3dg0ck1xf9mn1q6a73gwy524sjb6nfqgz";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
|
|
|
phaseNames = ["doUnpack" "killUsrBin" "doConfigure" "doMakeInstall" "doDeploy" "fixPaths"];
|
2014-11-06 00:44:33 +00:00
|
|
|
|
2011-05-25 10:04:54 +01:00
|
|
|
killUsrBin = a.fullDepEntry ''
|
|
|
|
sed -e s@/usr/bin/@@g -i $( grep -rl '/usr/bin/' . )
|
|
|
|
sed -re 's@/bin/(rm|printf|uname)@\1@g' -i $( grep -rl '/bin/' . )
|
|
|
|
'' ["minInit" "doUnpack"];
|
|
|
|
|
|
|
|
doDeploy = a.fullDepEntry ''
|
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
|
|
|
|
'' ["doMakeInstall" "defEnsureDir"];
|
|
|
|
|
|
|
|
fixPaths = a.doPatchShebangs "$out/bin";
|
|
|
|
|
|
|
|
meta = {
|
2014-08-08 16:58:34 +01:00
|
|
|
broken = true;
|
2011-05-25 10:04:54 +01:00
|
|
|
description = "Text-to-speech engine";
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
linux;
|
2014-11-06 00:44:33 +00:00
|
|
|
license = a.lib.licenses.free;
|
2011-05-25 10:04:54 +01:00
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://www.festvox.org/packed/festival/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}) x
|