14 license = licenses.agpl3Plus;
15 maintainers = with maintainers; [ davidak ];
16 platforms = platforms.all;
17 description = "Speech synthesizer based on the concatenation of diphones";
18 homepage = "https://github.com/numediart/MBROLA";
21 bin = stdenv.mkDerivation {
22 pname = "${pname}-bin";
25 src = fetchFromGitHub {
29 sha256 = "1w86gv6zs2cbr0731n49z8v6xxw0g8b0hzyv2iqb9mqcfh38l8zy";
32 # required for cross compilation
33 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
35 env = lib.optionalAttrs stdenv.cc.isGNU {
36 NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
41 install -D Bin/mbrola $out/bin/mbrola
42 rm -rf $out/share/mbrola/voices/*
47 description = "Speech synthesizer based on the concatenation of diphones (binary only)";
52 runCommandLocal "${pname}-${version}"
54 inherit pname version meta;
57 mkdir -p "$out/share/mbrola"
58 ln -s '${mbrola-voices}/data' "$out/share/mbrola/voices"
59 ln -s '${bin}/bin' "$out/"