summary refs log tree commit diff
path: root/pkgs/applications/audio/espeak-ng
diff options
context:
space:
mode:
authoraske <aske@fmap.me>2016-09-05 02:44:30 +0300
committeraske <aske@fmap.me>2016-09-05 03:33:41 +0300
commita6ce0f80fb0b1525ed0a55e2feb02a00ae023ff1 (patch)
tree5d89e527949ea546b88907c7f442cc41bbe13ed7 /pkgs/applications/audio/espeak-ng
parent48884e06ccd6867406d27a912960a3642b9c7415 (diff)
downloadnixpkgs-a6ce0f80fb0b1525ed0a55e2feb02a00ae023ff1.tar
nixpkgs-a6ce0f80fb0b1525ed0a55e2feb02a00ae023ff1.tar.gz
nixpkgs-a6ce0f80fb0b1525ed0a55e2feb02a00ae023ff1.tar.bz2
nixpkgs-a6ce0f80fb0b1525ed0a55e2feb02a00ae023ff1.tar.lz
nixpkgs-a6ce0f80fb0b1525ed0a55e2feb02a00ae023ff1.tar.xz
nixpkgs-a6ce0f80fb0b1525ed0a55e2feb02a00ae023ff1.tar.zst
nixpkgs-a6ce0f80fb0b1525ed0a55e2feb02a00ae023ff1.zip
espeak-ng: init at 2016-08-28
Diffstat (limited to 'pkgs/applications/audio/espeak-ng')
-rw-r--r--pkgs/applications/audio/espeak-ng/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/audio/espeak-ng/default.nix b/pkgs/applications/audio/espeak-ng/default.nix
new file mode 100644
index 00000000000..cb2e15bc5b2
--- /dev/null
+++ b/pkgs/applications/audio/espeak-ng/default.nix
@@ -0,0 +1,35 @@
+{ stdenv, lib, fetchFromGitHub, autoconf, automake, which, libtool, pkgconfig
+, ronn
+, pcaudiolibSupport ? true, pcaudiolib
+, sonicSupport ? true, sonic }:
+
+stdenv.mkDerivation rec {
+  name = "espeak-ng-${version}";
+  version = "2016-08-28";
+
+  src = fetchFromGitHub {
+    owner = "espeak-ng";
+    repo = "espeak-ng";
+    rev = "b784e77c5708b61feed780d8f1113c4c8eb92200";
+    sha256 = "1whix4mv0qvsvifgpwwbdzhv621as3rxpn9ijqc2683h6k8pvcfk";
+  };
+
+  nativeBuildInputs = [ autoconf automake which libtool pkgconfig ronn ];
+
+  buildInputs = lib.optional pcaudiolibSupport pcaudiolib
+             ++ lib.optional sonicSupport sonic;
+
+  preConfigure = "./autogen.sh";
+
+  postInstall = ''
+    patchelf --set-rpath "$(patchelf --print-rpath $out/bin/espeak-ng)" $out/bin/speak-ng
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Open source speech synthesizer that supports over 70 languages, based on eSpeak";
+    homepage = "https://github.com/espeak-ng/espeak-ng";
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ aske ];
+    platforms = platforms.linux;
+  };
+}