niftyreg: fix build with cmake4

This commit is contained in:
Rafael Ieda
2025-10-23 11:47:19 -03:00
parent a9440ea002
commit 5154bca56e
+5
View File
@@ -20,6 +20,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
buildInputs = [ zlib ];
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required(VERSION 2.8.0)" "cmake_minimum_required(VERSION 3.10)"
'';
meta = with lib; {
homepage = "http://cmictig.cs.ucl.ac.uk/wiki/index.php/NiftyReg";
description = "Medical image registration software";