11 stdenv.mkDerivation (finalAttrs: {
15 src = fetchFromGitHub {
18 rev = finalAttrs.version;
19 hash = "sha256-npS/wlqI7nBde/2S/rzp79jdfYXIIhgsVs5VizxEDAQ=";
40 make -C servers/native-espeak PREFIX=$out "TCL_INCLUDE=${tcl}/include"
44 make -C servers/native-espeak PREFIX=$out install
45 local d=$out/share/emacs/site-lisp/emacspeak/
48 find "$d" \( -type d -or \( -type f -executable \) \) -execdir chmod 755 {} +
49 find "$d" -type f -not -executable -execdir chmod 644 {} +
50 makeWrapper ${lib.getExe emacs} $out/bin/emacspeak \
51 --set DTK_PROGRAM "${placeholder "out"}/share/emacs/site-lisp/emacspeak/servers/espeak" \
52 --set TCLLIBPATH "${tclx}/lib" \
53 --add-flags '-l "${placeholder "out"}/share/emacs/site-lisp/emacspeak/lisp/emacspeak-setup.elc"'
57 homepage = "https://github.com/tvraman/emacspeak/";
58 description = "Emacs extension that provides spoken output";
59 changelog = "https://github.com/tvraman/emacspeak/blob/${finalAttrs.src.rev}/etc/NEWS";
60 license = with lib.licenses; [ gpl2Plus ];
61 mainProgram = "emacspeak";
62 maintainers = with lib.maintainers; [ AndersonTorres ];
63 platforms = lib.platforms.linux;
64 # Emacspeak requires a minimal Emacs version; let's use the broken flag
65 broken = lib.versionOlder (lib.getVersion emacs) "29.1";