flite: 2.0 -> 2.1, switch to fetchFromGitHub, enable ALSA

This commit is contained in:
SLNOS 2018-03-01 00:00:00 +00:00 committed by Jan Malakhovski
parent d4be6b330e
commit e6c63e9fc7
2 changed files with 12 additions and 12 deletions

View File

@ -1,16 +1,21 @@
{ stdenv, fetchurl }:
{ stdenv, fetchFromGitHub, alsaLib }:
stdenv.mkDerivation rec {
name = "flite-2.0.0";
name = "flite-2.1.0";
src = fetchurl {
url = "http://www.festvox.org/flite/packed/flite-2.0/${name}-release.tar.bz2";
sha256 = "04g4r83jh4cl0irc8bg7njngcah7749956v9s6sh552kzmh3i337";
src = fetchFromGitHub {
owner = "festvox";
repo = "flite";
rev = "d673f65b2c4a8cd3da7447079309a6dc4bcf1a5e";
sha256 = "1kx43jvdln370590gfjhxxz3chxfi6kq18504wmdpljib2l0grjq";
};
patches = [ ./fix-rpath.patch ];
buildInputs = [ alsaLib ];
configureFlags = [ "--enable-shared" ];
configureFlags = [
"--enable-shared"
"--with-audio=alsa"
];
enableParallelBuilding = true;

View File

@ -1,5 +0,0 @@
--- a/main/Makefile
+++ b/main/Makefile
@@ -81 +80,1 @@ ifdef SHFLAGS
-flite_LIBS_flags += -Wl,-rpath $(LIBDIR)
+flite_LIBS_flags += -Wl,-rpath,$(INSTALLLIBDIR)