From 46a129b0a92ac80b38d6f5872ff0fe3d8ea3bb49 Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 16 Sep 2025 04:28:51 +0100 Subject: [PATCH] libebur128: fix build with CMake 4 Co-authored-by: K900 --- pkgs/by-name/li/libebur128/package.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/by-name/li/libebur128/package.nix b/pkgs/by-name/li/libebur128/package.nix index c99256063037..283d0dd432d3 100644 --- a/pkgs/by-name/li/libebur128/package.nix +++ b/pkgs/by-name/li/libebur128/package.nix @@ -28,6 +28,20 @@ stdenv.mkDerivation rec { postPatch = '' substituteInPlace ebur128/libebur128.pc.cmake \ --replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ + '' + # Fix the build with CMake 4. + # + # See: + # + # * + # * + + '' + for file in CMakeLists.txt test/CMakeLists.txt; do + substituteInPlace "$file" \ + --replace-fail \ + 'cmake_minimum_required(VERSION 2.8.12' \ + 'cmake_minimum_required(VERSION 3.10' + done ''; meta = with lib; {