Unverified Commit 188349eb authored by Andrew Zah's avatar Andrew Zah
Browse files

lib60870: fix build issue related to cmake 4

parent b43c43d6
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -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;