svox: 2017-07-18 -> 2018-02-14

This commit is contained in:
Jörg Thalheim 2020-06-01 14:56:04 +01:00
parent 19e939d98e
commit 99466da038
No known key found for this signature in database
GPG Key ID: 003F2096411B5F92

View File

@ -1,37 +1,24 @@
{ stdenv, fetchgit }: { stdenv, fetchFromGitHub, autoreconfHook, popt }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "svox"; pname = "svox";
version = "2017-07-18"; version = "2018-02-14";
src = fetchgit { # basically took the source code from android and borrowed autotool patches from debian
url = "https://android.googlesource.com/platform/external/svox"; src = fetchFromGitHub {
rev = "7e68d0e9aac1b5d2ad15e92ddaa3bceb27973fcb"; owner = "naggety";
sha256 = "1bqj12w23nn27x64ianm2flrqvkskpvgrnly7ah8gv6k8s8chh3r"; repo = "picotts";
rev = "e3ba46009ee868911fa0b53db672a55f9cc13b1c";
sha256 = "0k3m7vh1ak9gmxd83x29cvhzfkybgz5hnlhd9xj19l1bjyx84s8v";
}; };
postPatch = '' postPatch = ''
cd pico cd pico
''; '';
buildPhase = '' buildInputs = [ popt ];
cd lib
for i in *.c; do
$CC -O2 -fPIC -c -o ''${i%.c}.o $i
done
$CC -shared -o libttspico.so *.o
cd ..
'';
installPhase = '' nativeBuildInputs = [ autoreconfHook ];
install -Dm755 lib/libttspico.so $out/lib/libttspico.so
mkdir -p $out/include
cp lib/*.h $out/include
mkdir -p $out/share/pico/lang
cp lang/*.bin $out/share/pico/lang
'';
NIX_CFLAGS_COMPILE = "-include stdint.h";
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Text-to-speech engine"; description = "Text-to-speech engine";