depot/pkgs/by-name/ek/ekho/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

56 lines
1.4 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, autoconf
, automake
, libtool
, libsndfile
, libpulseaudio
, espeak-ng
, sonic
, utf8cpp
, darwin
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ekho";
version = "9.0";
src = fetchFromGitHub {
owner = "hgneng";
repo = "ekho";
rev = "v${finalAttrs.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.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.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 ];
mainProgram = "ekho";
};
})