soxr: fix build with CMake 4

This commit is contained in:
Emily
2025-09-19 16:29:10 +01:00
parent 82de3ea0a0
commit 5bebee097d
+8
View File
@@ -32,6 +32,14 @@ stdenv.mkDerivation rec {
"-DINCLUDE_INSTALL_DIR=${placeholder "dev"}/include"
];
# Fix the build with CMake 4.
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail \
'cmake_minimum_required (VERSION 3.1 FATAL_ERROR)' \
'cmake_minimum_required (VERSION 3.10 FATAL_ERROR)'
'';
meta = with lib; {
description = "Audio resampling library";
homepage = "https://soxr.sourceforge.net";