From e938b1e247f8ae9ba8aa214d680bfac056998deb Mon Sep 17 00:00:00 2001 From: Martin Joerg Date: Mon, 6 Oct 2025 11:54:36 +0000 Subject: [PATCH] espeak-ng: fix build with ucdSupport against CMake >= 4.0 --- pkgs/applications/audio/espeak-ng/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/audio/espeak-ng/default.nix b/pkgs/applications/audio/espeak-ng/default.nix index 71aa235bd663..0afba656b601 100644 --- a/pkgs/applications/audio/espeak-ng/default.nix +++ b/pkgs/applications/audio/espeak-ng/default.nix @@ -47,6 +47,11 @@ let sourceRoot = "${src.name}/src/ucd-tools"; + # fix compatibility with CMake (https://cmake.org/cmake/help/v4.0/policy/CMP0000.html) + postPatch = '' + echo 'cmake_minimum_required(VERSION 4.0)' >> CMakeLists.txt + ''; + nativeBuildInputs = [ cmake ]; installPhase = ''