From 827b7b962ce3dac8028f1fdd5a0630869a8fb91c Mon Sep 17 00:00:00 2001 From: "Markus S. Wamser" Date: Tue, 14 Sep 2021 14:03:57 +0200 Subject: [PATCH] mimic: 1.2.0.2 -> 1.3.0.1 * version bump * adopt upstream renaming of repository * add wrapper for alsaPlugins --- pkgs/applications/audio/mimic/default.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/audio/mimic/default.nix b/pkgs/applications/audio/mimic/default.nix index 5ed51a998959..cd24bec3035e 100644 --- a/pkgs/applications/audio/mimic/default.nix +++ b/pkgs/applications/audio/mimic/default.nix @@ -1,29 +1,37 @@ -{ config, lib, stdenv, autoreconfHook, fetchFromGitHub, pkg-config -, alsa-lib, libtool, icu +{ config, lib, stdenv, autoreconfHook, fetchFromGitHub, pkg-config, makeWrapper +, alsa-lib, alsa-plugins, libtool, icu, pcre2 , pulseaudioSupport ? config.pulseaudio or false, libpulseaudio }: stdenv.mkDerivation rec { pname = "mimic"; - version = "1.2.0.2"; + version = "1.3.0.1"; src = fetchFromGitHub { rev = version; - repo = "mimic"; + repo = "mimic1"; owner = "MycroftAI"; - sha256 = "1wkpbwk88lsahzkc7pzbznmyy0lc02vsp0vkj8f1ags1gh0lc52j"; + sha256 = "1agwgby9ql8r3x5rd1rgx3xp9y4cdg4pi3kqlz3vanv9na8nf3id"; }; nativeBuildInputs = [ autoreconfHook pkg-config + makeWrapper ]; buildInputs = [ alsa-lib + alsa-plugins libtool icu + pcre2 ] ++ lib.optional pulseaudioSupport libpulseaudio; + postInstall = '' + wrapProgram $out/bin/mimic \ + --run "export ALSA_PLUGIN_DIR=${alsa-plugins}/lib/alsa-lib" + ''; + meta = { description = "Mycroft's TTS engine, based on CMU's Flite (Festival Lite)"; homepage = "https://mimic.mycroft.ai/";