xygrib: fix build with cmake4

This commit is contained in:
Rafael Ieda
2025-10-19 21:44:50 -03:00
parent 54687e1b3c
commit 89f16e1ef3
@@ -42,6 +42,11 @@ stdenv.mkDerivation {
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ "-DLIBNOVA_LIBRARY=${libnova}/lib/libnova.dylib" ];
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required (VERSION 3.1.0)" "cmake_minimum_required(VERSION 3.10)"
'';
postInstall =
if stdenv.hostPlatform.isDarwin then
''