soxr: fix build with CMake 4
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user