monosat: fix build with cmake4

This commit is contained in:
Rafael Ieda
2025-10-25 14:36:20 -03:00
parent 9d4915aa6e
commit 89420eeaa1

View File

@@ -47,7 +47,10 @@ let
core = stdenv.mkDerivation {
name = "${pname}-${version}";
inherit src patches;
postPatch = commonPostPatch;
postPatch = commonPostPatch + ''
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required(VERSION 3.02)" "cmake_minimum_required(VERSION 3.10)"
'';
nativeBuildInputs = [ cmake ];
buildInputs = [
zlib