From 6daea0bd870be50f4f081bea48e853a2be3ad8f8 Mon Sep 17 00:00:00 2001 From: Rafael Ieda Date: Thu, 23 Oct 2025 18:44:15 -0300 Subject: [PATCH] openlierox: fix build with cmake4 --- pkgs/by-name/op/openlierox/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/op/openlierox/package.nix b/pkgs/by-name/op/openlierox/package.nix index f1fa65c403de..471d8986e18a 100644 --- a/pkgs/by-name/op/openlierox/package.nix +++ b/pkgs/by-name/op/openlierox/package.nix @@ -31,6 +31,15 @@ stdenv.mkDerivation (finalAttrs: { sed 1i'#include ' -i include/XMLutils.h substituteInPlace src/common/StringUtils.cpp \ --replace-fail "xmlErrorPtr" "const xmlError*" + + substituteInPlace CMakeLists.txt \ + --replace-fail "cmake_minimum_required(VERSION 2.4)" "cmake_minimum_required(VERSION 3.10)" + substituteInPlace CMakeOlxCommon.cmake \ + --replace-fail "cmake_minimum_required(VERSION 2.4)" "cmake_minimum_required(VERSION 3.10)" \ + --replace-fail "cmake_policy(VERSION 2.4)" "cmake_policy(VERSION 3.10)" \ + --replace-fail "cmake_policy(SET CMP0005 OLD)" "" \ + --replace-fail "cmake_policy(SET CMP0003 OLD)" "" \ + --replace-fail "cmake_policy(SET CMP0011 OLD)" "" ''; strictDeps = true;