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; {