From 3eb1022a976d569e73144bf1f9b6940d22bd2b0a Mon Sep 17 00:00:00 2001 From: Airradda Date: Mon, 15 Jan 2024 21:49:18 -0600 Subject: vesktop: add text-to-speech --- pkgs/by-name/ve/vesktop/package.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pkgs/by-name/ve') diff --git a/pkgs/by-name/ve/vesktop/package.nix b/pkgs/by-name/ve/vesktop/package.nix index 74f52e2c92784..33d9f5b9c599e 100644 --- a/pkgs/by-name/ve/vesktop/package.nix +++ b/pkgs/by-name/ve/vesktop/package.nix @@ -17,6 +17,8 @@ , moreutils , cacert , nodePackages +, speechd +, withTTS ? true }: stdenv.mkDerivation (finalAttrs: { pname = "vesktop"; @@ -115,12 +117,12 @@ stdenv.mkDerivation (finalAttrs: { installPhase = let # this is mainly required for venmic - libPath = lib.makeLibraryPath [ + libPath = lib.makeLibraryPath ([ libpulseaudio libnotify pipewire gcc13Stdenv.cc.cc.lib - ]; + ] ++ lib.optional withTTS speechd); in '' runHook preInstall @@ -138,6 +140,7 @@ stdenv.mkDerivation (finalAttrs: { makeWrapper ${electron}/bin/electron $out/bin/vencorddesktop \ --prefix LD_LIBRARY_PATH : ${libPath} \ --add-flags $out/opt/Vesktop/resources/app.asar \ + ${lib.optionalString withTTS "--add-flags \"--enable-speech-dispatcher\""} \ --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" runHook postInstall -- cgit 1.4.1