nanotts: fix build with cmake4, unbreak

This commit is contained in:
Rafael Ieda
2025-10-25 14:54:28 -03:00
parent 9d4915aa6e
commit 99fccc2055

View File

@@ -35,6 +35,10 @@ stdenv.mkDerivation {
]; ];
patchPhase = '' patchPhase = ''
# fix 64-bit compilation error in picoapi.c: picoos_uint32 vs picoos_objsize_t
substituteInPlace svoxpico/picoapi.c \
--replace-fail 'picoos_uint32 rest_mem_size;' 'picoos_objsize_t rest_mem_size;'
substituteInPlace "src/main.cpp" --replace "/usr/share/pico/lang" "$out/share/lang" substituteInPlace "src/main.cpp" --replace "/usr/share/pico/lang" "$out/share/lang"
echo "" > update_build_version.sh echo "" > update_build_version.sh
''; '';
@@ -46,6 +50,11 @@ stdenv.mkDerivation {
--set ALSA_PLUGIN_DIR ${alsa-plugins}/lib/alsa-lib --set ALSA_PLUGIN_DIR ${alsa-plugins}/lib/alsa-lib
''; '';
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required(VERSION 3.3)" "cmake_minimum_required(VERSION 3.10)"
'';
meta = { meta = {
description = "Speech synthesizer commandline utility that improves pico2wave, included with SVOX PicoTTS"; description = "Speech synthesizer commandline utility that improves pico2wave, included with SVOX PicoTTS";
homepage = "https://github.com/gmn/nanotts"; homepage = "https://github.com/gmn/nanotts";