From 188349eb7c5c42ece4955f6e7fcda6c2bc296536 Mon Sep 17 00:00:00 2001 From: Andrew Zah Date: Tue, 21 Oct 2025 10:22:47 +0900 Subject: [PATCH] lib60870: fix build issue related to cmake 4 --- pkgs/by-name/li/lib60870/package.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/li/lib60870/package.nix b/pkgs/by-name/li/lib60870/package.nix index 8a39f3d5d5e0..3887f73d2329 100644 --- a/pkgs/by-name/li/lib60870/package.nix +++ b/pkgs/by-name/li/lib60870/package.nix @@ -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;