depot/third_party/nixpkgs/pkgs/applications/audio/ekho/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

55 lines
1.3 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, autoconf
, automake
, libtool
, libsndfile
, libpulseaudio
, espeak-ng
, sonic
, utf8cpp
, AudioUnit
}:
stdenv.mkDerivation rec {
pname = "ekho";
version = "9.0";
src = fetchFromGitHub {
owner = "hgneng";
repo = "ekho";
rev = "v${version}";
hash = "sha256-VYN9tR3BJXd3UA0V5vqQJNItJe1e1knZ+S7tLeaeYYk=";
};
preConfigure = ''
./autogen.sh
'';
CXXFLAGS = [
"-O0"
"-I${lib.getDev utf8cpp}/include/utf8cpp"
];
nativeBuildInputs = [ pkg-config autoconf automake libtool ];
buildInputs = [ libsndfile libpulseaudio espeak-ng sonic utf8cpp ]
++ lib.optionals stdenv.isDarwin [ AudioUnit ];
meta = with lib; {
description = "Chinese text-to-speech software";
homepage = "http://www.eguidedog.net/ekho.php";
longDescription = ''
Ekho () is a free, open source and multilingual text-to-speech (TTS)
software. It supports Cantonese (Chinese dialect spoken in Hong Kong and
part of Guangdong province), Mandarin (standard Chinese), Zhaoan Hakka
(a dialect in Taiwan), Tibetan, Ngangien (an ancient Chinese before
Yuan Dynasty) and Korean (in trial).
'';
license = licenses.gpl2Plus;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ aaronjheng ];
};
}