espeak{edit,-classic}: move to by-name/, add missing runHooks (#539391)

This commit is contained in:
Weijia Wang
2026-07-08 20:38:02 +00:00
committed by GitHub
10 changed files with 20 additions and 6 deletions
@@ -31,8 +31,10 @@ stdenv.mkDerivation (finalAttrs: {
'');
configurePhase = ''
runHook preConfigure
cd src
makeFlags="PREFIX=$out DATADIR=$out/share/espeak-data"
runHook postConfigure
'';
meta = {
+13
View File
@@ -0,0 +1,13 @@
diff --git c/src/tr_languages.cpp i/src/tr_languages.cpp
index ec210a5..9503f47 100755
--- c/src/tr_languages.cpp
+++ i/src/tr_languages.cpp
@@ -198,7 +198,7 @@ static const unsigned short chars_ignore_zwnj_hyphen[] = {
0x200d, 1, // zero width joiner
0, 0 };
-const char string_ordinal[] = {0xc2,0xba,0}; // masculine ordinal character, UTF-8
+const char string_ordinal[] = {char(0xc2),char(0xba),0}; // masculine ordinal character, UTF-8
static Translator* NewTranslator(void)
@@ -61,12 +61,15 @@ stdenv.mkDerivation (finalAttrs: {
'';
buildPhase = ''
runHook preBuild
make -C src
runHook postBuild
'';
installPhase = ''
mkdir -p "$out/bin"
cp src/espeakedit "$out/bin"
runHook preInstall
install -D src/espeakedit -t $out/bin
runHook postInstall
'';
meta = {
-4
View File
@@ -8616,12 +8616,8 @@ with pkgs;
eval = false;
} emacs.pkgs;
espeak-classic = callPackage ../applications/audio/espeak { };
espeak = espeak-ng;
espeakedit = callPackage ../applications/audio/espeak/edit.nix { };
evolution-data-server-gtk4 = evolution-data-server.override {
withGtk3 = false;
withGtk4 = true;