Unverified Commit dacb1090 authored by Yaya's avatar Yaya Committed by GitHub
Browse files

lib60870: fix build issue related to cmake 4 (#454049)

parents 2c97fe7d 188349eb
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;