48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
flutter327,
|
|
gst_all_1,
|
|
}:
|
|
|
|
flutter327.buildFlutterApplication rec {
|
|
pname = "pied";
|
|
version = "0.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Elleo";
|
|
repo = "pied";
|
|
tag = "v${version}";
|
|
hash = "sha256-STeSpto70b4m03ExikUrIwsHCqj1QH2jvVZ8G/ybw28=";
|
|
};
|
|
|
|
pubspecLock = lib.importJSON ./pubspec.lock.json;
|
|
patches = [ ./patches/add_piper_tts-path.patch ];
|
|
|
|
strictDeps = true;
|
|
|
|
buildInputs = [
|
|
gst_all_1.gst-plugins-base
|
|
gst_all_1.gst-plugins-good
|
|
gst_all_1.gst-plugins-bad
|
|
];
|
|
|
|
postInstall = ''
|
|
install -D flatpak/com.mikeasoft.pied.desktop -t $out/share/applications
|
|
install -D flatpak/com.mikeasoft.pied.png -t $out/share/pixmaps
|
|
'';
|
|
|
|
meta = {
|
|
description = "Piper text-to-speech voice manager for use with Speech Dispatcher";
|
|
homepage = "https://github.com/Elleo/pied";
|
|
changelog = "https://github.com/Elleo/pied/releases/tag/${src.tag}";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ genga898 ];
|
|
mainProgram = "pied";
|
|
badPlatforms = [
|
|
# Silently fails in dartConfigHook
|
|
lib.systems.inspect.patterns.isDarwin
|
|
];
|
|
};
|
|
}
|