2021-09-14 14:03:57 +02:00
|
|
|
{ config, lib, stdenv, autoreconfHook, fetchFromGitHub, pkg-config, makeWrapper
|
|
|
|
, alsa-lib, alsa-plugins, libtool, icu, pcre2
|
2019-02-03 16:31:28 +01:00
|
|
|
, pulseaudioSupport ? config.pulseaudio or false, libpulseaudio }:
|
2018-08-15 21:43:37 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "mimic";
|
2021-09-14 14:03:57 +02:00
|
|
|
version = "1.3.0.1";
|
2018-08-15 21:43:37 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MycroftAI";
|
2021-10-15 22:13:35 +02:00
|
|
|
repo = "mimic1";
|
|
|
|
rev = version;
|
2021-09-14 14:03:57 +02:00
|
|
|
sha256 = "1agwgby9ql8r3x5rd1rgx3xp9y4cdg4pi3kqlz3vanv9na8nf3id";
|
2018-08-15 21:43:37 +02:00
|
|
|
};
|
|
|
|
|
2019-02-03 16:31:28 +01:00
|
|
|
nativeBuildInputs = [
|
2018-08-15 21:43:37 +02:00
|
|
|
autoreconfHook
|
2021-01-19 07:50:56 +01:00
|
|
|
pkg-config
|
2021-09-14 14:03:57 +02:00
|
|
|
makeWrapper
|
2018-08-15 21:43:37 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-06-10 04:57:09 +02:00
|
|
|
alsa-lib
|
2021-09-14 14:03:57 +02:00
|
|
|
alsa-plugins
|
2018-08-15 21:43:37 +02:00
|
|
|
libtool
|
2019-02-03 16:31:28 +01:00
|
|
|
icu
|
2021-09-14 14:03:57 +02:00
|
|
|
pcre2
|
2021-01-15 14:21:58 +01:00
|
|
|
] ++ lib.optional pulseaudioSupport libpulseaudio;
|
2018-08-15 21:43:37 +02:00
|
|
|
|
2021-09-14 14:03:57 +02:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/mimic \
|
|
|
|
--run "export ALSA_PLUGIN_DIR=${alsa-plugins}/lib/alsa-lib"
|
|
|
|
'';
|
|
|
|
|
2018-08-15 21:43:37 +02:00
|
|
|
meta = {
|
|
|
|
description = "Mycroft's TTS engine, based on CMU's Flite (Festival Lite)";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://mimic.mycroft.ai/";
|
2021-01-15 14:21:58 +01:00
|
|
|
license = lib.licenses.free;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = [ lib.maintainers.noneucat ];
|
2018-08-15 21:43:37 +02:00
|
|
|
};
|
|
|
|
}
|