git.iko.soy/typeable/nixpkgs
on master help sign in
espeak-classic: fix build with gcc6
commit6c1364712afd2d48173d2e87d49b7cdc6aecda51 authorSamuel Leathers <sam@appliedtrust.com> dateFri 1 Sep 2017, 10:25 (9 years ago) parentb2e7e23
2 files changed+18−1
pkgs/applications/audio/espeak/default.nix+5−1 pkgs/applications/audio/espeak/gcc6.patch+13
pkgs/applications/audio/espeak/default.nix+5−1
@@ -10,7 +10,11 @@ stdenv.mkDerivation rec {
1010
1111 buildInputs = [ unzip portaudio ];
1212
13− patchPhase = ''
13+ patches = [
14+ ./gcc6.patch
15+ ];
16+
17+ prePatch = ''
1418 sed -e s,/bin/ln,ln,g -i src/Makefile
1519 sed -e 's,^CXXFLAGS=-O2,CXXFLAGS=-O2 -D PATH_ESPEAK_DATA=\\\"$(DATADIR)\\\",' -i src/Makefile
1620 '' + (if portaudio.api_version == 19 then ''
pkgs/applications/audio/espeak/gcc6.patchnew file+13
@@ -0,0 +1,13 @@
1+diff --git c/src/tr_languages.cpp i/src/tr_languages.cpp
2+index ec210a5..9503f47 100755
3+--- c/src/tr_languages.cpp
4++++ i/src/tr_languages.cpp
5+@@ -198,7 +198,7 @@ static const unsigned short chars_ignore_zwnj_hyphen[] = {
6+ 0x200d, 1, // zero width joiner
7+ 0, 0 };
8+
9+-const char string_ordinal[] = {0xc2,0xba,0}; // masculine ordinal character, UTF-8
10++const char string_ordinal[] = {char(0xc2),char(0xba),0}; // masculine ordinal character, UTF-8
11+
12+
13+ static Translator* NewTranslator(void)