libebur128: fix build with CMake 4

Co-authored-by: K900 <me@0upti.me>
This commit is contained in:
Emily
2025-09-19 16:29:10 +01:00
co-authored by K900
parent ff731f2d16
commit 46a129b0a9
+14
View File
@@ -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:
#
# * <https://github.com/jiixyj/libebur128/issues/134>
# * <https://github.com/jiixyj/libebur128/pull/135>
+ ''
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; {