nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 63 lines 1.7 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 fetchpatch, 6 flite, 7 alsa-lib, 8 debug ? false, 9}: 10 11stdenv.mkDerivation (finalAttrs: { 12 pname = "eflite"; 13 version = "0.4.1"; 14 15 src = fetchurl { 16 url = "mirror://sourceforge/eflite/eflite/${finalAttrs.version}/eflite-${finalAttrs.version}.tar.gz"; 17 hash = "sha256-ka2FhV5Vo/w7l6GlJdtf0dIR1UNCu/yI0QJoExBPFyE="; 18 }; 19 20 buildInputs = [ 21 flite 22 alsa-lib 23 ]; 24 25 configureFlags = [ 26 "flite_dir=${flite.dev}" 27 "--with-audio=alsa" 28 "--with-vox=cmu_us_kal16" 29 ]; 30 31 patches = [ 32 (fetchpatch { 33 url = "https://sources.debian.org/data/main/e/eflite/0.4.1-8/debian/patches/cvs-update"; 34 sha256 = "0r631vzmky7b7qyhm152557y4fr0xqrpi3y4w66fcn6p4rj03j05"; 35 }) 36 (fetchpatch { 37 url = "https://sources.debian.org/data/main/e/eflite/0.4.1-8/debian/patches/buf-overflow"; 38 sha256 = "071qk133kb7n7bq6kxgh3p9bba6hcl1ixsn4lx8vp8klijgrvkmx"; 39 }) 40 (fetchpatch { 41 url = "https://sources.debian.org/data/main/e/eflite/0.4.1-8/debian/patches/link"; 42 sha256 = "0p833dp4pdsya72bwh3syvkq85927pm6snxvx13lvcppisbhj0fc"; 43 }) 44 ./format.patch 45 ]; 46 47 CFLAGS = lib.optionalString debug " -DDEBUG=2"; 48 49 meta = { 50 homepage = "https://eflite.sourceforge.net"; 51 description = "Speech server for screen readers"; 52 longDescription = '' 53 EFlite is a speech server for Emacspeak and other screen 54 readers that allows them to interface with Festival Lite, 55 a free text-to-speech engine developed at the CMU Speech 56 Center as an off-shoot of Festival. 57 ''; 58 license = lib.licenses.gpl2; 59 platforms = lib.platforms.linux; 60 maintainers = with lib.maintainers; [ bot-wxt1221 ]; 61 mainProgram = "eflite"; 62 }; 63})