diff options
author | Robin Gloster <mail@glob.in> | 2016-05-02 22:58:02 +0000 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2016-05-02 22:58:02 +0000 |
commit | c92bca56f8ea5623cf01952621455db308d0f330 (patch) | |
tree | f940e6e4fabd8e58b91fe885f9541205258023b2 /pkgs/development/libraries/speechd | |
parent | 0fdde5efd08c036fe9d73b4e65f2ba9797053d0f (diff) | |
parent | 94520a25adc6b6bee799ec9dab344cfdad3f7180 (diff) | |
download | nixpkgs-c92bca56f8ea5623cf01952621455db308d0f330.tar nixpkgs-c92bca56f8ea5623cf01952621455db308d0f330.tar.gz nixpkgs-c92bca56f8ea5623cf01952621455db308d0f330.tar.bz2 nixpkgs-c92bca56f8ea5623cf01952621455db308d0f330.tar.lz nixpkgs-c92bca56f8ea5623cf01952621455db308d0f330.tar.xz nixpkgs-c92bca56f8ea5623cf01952621455db308d0f330.tar.zst nixpkgs-c92bca56f8ea5623cf01952621455db308d0f330.zip |
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
Diffstat (limited to 'pkgs/development/libraries/speechd')
-rw-r--r-- | pkgs/development/libraries/speechd/default.nix | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/pkgs/development/libraries/speechd/default.nix b/pkgs/development/libraries/speechd/default.nix index 94489e992a6..1a943be0fc2 100644 --- a/pkgs/development/libraries/speechd/default.nix +++ b/pkgs/development/libraries/speechd/default.nix @@ -1,22 +1,39 @@ -{ fetchurl, stdenv, dotconf, glib, pkgconfig }: +{ fetchurl, lib, stdenv, intltool, libtool, pkgconfig, glib, dotconf, libsndfile +, libao, python3Packages +, withEspeak ? false, espeak +, withPico ? true, svox +}: stdenv.mkDerivation rec { - name = "speech-dispatcher-" + version; - version = "0.7.1"; + name = "speech-dispatcher-${version}"; + version = "0.8.3"; src = fetchurl { url = "http://www.freebsoft.org/pub/projects/speechd/${name}.tar.gz"; - sha256 = "0laag72iw03545zggdzcr860b8q7w1vrjr3csd2ldps7jhlwzad8"; + sha256 = "0kqy7z4l59n2anc7xn588w4rkacig1hajx8c53qrh90ypar978ln"; }; - buildInputs = [ dotconf glib pkgconfig ]; + buildInputs = [ intltool libtool glib dotconf libsndfile libao python3Packages.python ] + ++ lib.optional withEspeak espeak + ++ lib.optional withPico svox; + nativeBuildInputs = [ pkgconfig python3Packages.wrapPython ]; hardeningDisable = [ "format" ]; - meta = { - description = "Common interface to speech synthesis"; + pythonPath = with python3Packages; [ pyxdg ]; + + postPatch = lib.optionalString withPico '' + sed -i 's,/usr/share/pico/lang/,${svox}/share/pico/lang/,g' src/modules/pico.c + ''; + postInstall = '' + wrapPythonPrograms + ''; + + meta = with stdenv.lib; { + description = "Common interface to speech synthesis"; homepage = http://www.freebsoft.org/speechd; - license = stdenv.lib.licenses.gpl2Plus; + license = licenses.gpl2Plus; + platforms = platforms.linux; }; } |