From 23b44464be3648f0a0a00111db85163d8c57dec6 Mon Sep 17 00:00:00 2001 From: Ankit Pandey Date: Sun, 20 Mar 2022 15:28:26 -0700 Subject: [PATCH] emacspeak: Use bundled espeak server instead of espeak-ng Emacspeak comes with its own native speech server which is compiled in the derivation but never actually used by emacspeak. Instead emacspeak uses espeak-ng, which echoes every command issued to the server and won't shut up about tts sync states. Fix this by setting DTK_PROGRAM to the bundled espeak server. --- .../editors/emacs/elisp-packages/emacspeak/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/editors/emacs/elisp-packages/emacspeak/default.nix b/pkgs/applications/editors/emacs/elisp-packages/emacspeak/default.nix index 84d724c3518b..54805d43b248 100644 --- a/pkgs/applications/editors/emacs/elisp-packages/emacspeak/default.nix +++ b/pkgs/applications/editors/emacs/elisp-packages/emacspeak/default.nix @@ -45,7 +45,8 @@ stdenv.mkDerivation rec { find "$d" \( -type d -or \( -type f -executable \) \) -execdir chmod 755 {} + find "$d" -type f -not -executable -execdir chmod 644 {} + makeWrapper ${emacs}/bin/emacs $out/bin/emacspeak \ - --set DTK_PROGRAM "${espeak-ng}/bin/espeak" \ + --set DTK_PROGRAM "${placeholder "out"}/share/emacs/site-lisp/emacspeak/servers/espeak" \ + --set TCLLIBPATH "${tclx}/lib" \ --add-flags '-l "${placeholder "out"}/share/emacs/site-lisp/emacspeak/lisp/emacspeak-setup.elc"' '';