niftyseg: fix build with cmake4

This commit is contained in:
Rafael Ieda
2025-11-04 12:14:37 -03:00
parent 6fc2c77396
commit 5f2b97539d
+7
View File
@@ -24,6 +24,13 @@ stdenv.mkDerivation rec {
zlib
];
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required(VERSION 2.8)" "cmake_minimum_required(VERSION 3.10)" \
--replace-fail "cmake_minimum_required(VERSION 3.0.2)" "cmake_minimum_required(VERSION 3.10)" \
--replace-fail "cmake_policy(VERSION 2.8)" "cmake_policy(VERSION 3.10)"
'';
meta = with lib; {
homepage = "http://cmictig.cs.ucl.ac.uk/research/software/software-nifty/niftyseg";
description = "Software for medical image segmentation, bias field correction, and cortical thickness calculation";