diff options
author | Airradda <git@airradda.com> | 2024-01-15 21:49:18 -0600 |
---|---|---|
committer | Airradda <git@airradda.com> | 2024-01-15 21:49:18 -0600 |
commit | 3eb1022a976d569e73144bf1f9b6940d22bd2b0a (patch) | |
tree | e4abb85b06b054fff7002c9bc14b759afe0eede7 /pkgs/by-name/ve/vesktop/package.nix | |
parent | 7f9908537d379a4689c8559e813716676d5d3a8d (diff) |
vesktop: add text-to-speech
Diffstat (limited to 'pkgs/by-name/ve/vesktop/package.nix')
-rw-r--r-- | pkgs/by-name/ve/vesktop/package.nix | 7 |
1 files changed, 5 insertions, 2 deletions
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 |