Adding espeak (and one of the libraries it needs, portaudio)
svn path=/nixpkgs/trunk/; revision=23351
This commit is contained in:
parent
f093c8fb18
commit
5c8b4043ee
29
pkgs/applications/audio/espeak/default.nix
Normal file
29
pkgs/applications/audio/espeak/default.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{stdenv, fetchurl, unzip, portaudio }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "espeak-1.44.03";
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/espeak/espeak-1.44.03-source.zip;
|
||||
sha256 = "0lnv89xmsq3bax0qpabd0z2adaag7mdl973bkw3gdszidafmfyx4";
|
||||
};
|
||||
|
||||
buildInputs = [ unzip portaudio ];
|
||||
|
||||
patchPhase = ''
|
||||
sed -e s,/bin/ln,ln,g -i src/Makefile
|
||||
sed -e 's,^CXXFLAGS=-O2,CXXFLAGS=-O2 -D PATH_ESPEAK_DATA=\\\"$(DATADIR)\\\",' -i src/Makefile
|
||||
'' + (if portaudio.api_version == 19 then ''
|
||||
cp src/portaudio19.h src/portaudio.h
|
||||
'' else "");
|
||||
|
||||
configurePhase = ''
|
||||
cd src
|
||||
makeFlags="PREFIX=$out"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Compact open source software speech synthesizer";
|
||||
homepage = http://espeak.sourceforge.net/;
|
||||
license = "GPLv3+";
|
||||
};
|
||||
}
|
23
pkgs/development/libraries/portaudio/default.nix
Normal file
23
pkgs/development/libraries/portaudio/default.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{ stdenv, fetchurl, alsaLib, pkgconfig }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "portaudio-19-20071207";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://www.portaudio.com/archives/pa_stable_v19_20071207.tar.gz;
|
||||
sha256 = "0axz8xzkb6ynzj65p6cv6b0cl5csxsdfvqkd0dljlf3dslkpg886";
|
||||
};
|
||||
|
||||
buildInputs = [ alsaLib pkgconfig ];
|
||||
|
||||
meta = {
|
||||
description = "Portable cross-platform Audio API";
|
||||
homepage = http://www.portaudio.com/;
|
||||
# Not exactly a bsd license, but alike
|
||||
license = "BSD";
|
||||
};
|
||||
|
||||
passthru = {
|
||||
api_version = 19;
|
||||
};
|
||||
}
|
@ -3617,6 +3617,8 @@ let
|
||||
|
||||
popt = callPackage ../development/libraries/popt { };
|
||||
|
||||
portaudio = callPackage ../development/libraries/portaudio { };
|
||||
|
||||
proj = callPackage ../development/libraries/proj { };
|
||||
|
||||
postgis = callPackage ../development/libraries/postgis { };
|
||||
@ -5411,6 +5413,8 @@ let
|
||||
inherit (gtkLibs) gtk;
|
||||
};
|
||||
|
||||
espeak = callPackage ../applications/audio/espeak { };
|
||||
|
||||
evince = callPackage ../applications/misc/evince {
|
||||
inherit (gnome) gnomedocutils gnomeicontheme libgnome
|
||||
libgnomeui libglade glib gtk scrollkeeper gnome_keyring;
|
||||
|
Loading…
Reference in New Issue
Block a user