lib60870: fix build issue related to cmake 4

This commit is contained in:
Andrew Zah
2025-10-21 10:24:07 +09:00
parent b43c43d642
commit 188349eb7c
+7 -2
View File
@@ -20,8 +20,13 @@ stdenv.mkDerivation (finalAttrs: {
sourceRoot = "${finalAttrs.src.name}/lib60870-C";
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace src/CMakeLists.txt --replace-warn "-lrt" ""
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required(VERSION 3.0)" "cmake_minimum_required(VERSION 3.10)"
''
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace src/CMakeLists.txt \
--replace-warn "-lrt" "" \
'';
separateDebugInfo = true;