mni_autoreg: fix build with cmake4

This commit is contained in:
Rafael Ieda
2025-10-22 18:36:05 -03:00
parent b5d4fb5c91
commit 3e14dbd9c9
+6
View File
@@ -48,6 +48,12 @@ stdenv.mkDerivation {
done
'';
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "CMAKE_MINIMUM_REQUIRED(VERSION 3.1)" "cmake_minimum_required(VERSION 3.10)" \
--replace-fail "CMAKE_POLICY(SET CMP0026 OLD)" "CMAKE_POLICY(SET CMP0026 NEW)"
'';
meta = {
homepage = "https://github.com/BIC-MNI/mni_autoreg";
description = "Tools for automated registration using the MINC image format";