2020-08-04 00:08:57 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, libX11, libuuid, xz, vtk_7, Cocoa }:
|
2019-09-13 10:51:20 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-08-04 00:08:57 +01:00
|
|
|
pname = "itk";
|
|
|
|
version = "4.13.3";
|
2019-09-13 10:51:20 +01:00
|
|
|
|
2020-08-04 00:08:57 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "InsightSoftwareConsortium";
|
|
|
|
repo = "ITK";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "067vkh39jxcvyvn69qjh4vi3wa7vdvm9m6qsg3jmnmm7gzw0kjlm";
|
2019-09-13 10:51:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_TESTING=OFF"
|
|
|
|
"-DBUILD_EXAMPLES=OFF"
|
|
|
|
"-DBUILD_SHARED_LIBS=ON"
|
|
|
|
"-DModule_ITKMINC=ON"
|
|
|
|
"-DModule_ITKIOMINC=ON"
|
|
|
|
"-DModule_ITKIOTransformMINC=ON"
|
|
|
|
"-DModule_ITKVtkGlue=ON"
|
|
|
|
"-DModule_ITKReview=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake xz ];
|
2020-08-04 00:08:57 +01:00
|
|
|
buildInputs = [ libX11 libuuid vtk_7 ] ++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa ];
|
2019-09-13 10:51:20 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Insight Segmentation and Registration Toolkit";
|
2020-08-04 00:08:57 +01:00
|
|
|
homepage = "https://www.itk.org/";
|
2019-09-13 10:51:20 +01:00
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
|
|
|
};
|
|
|
|
}
|