Merge pull request #23376 from bcdarwin/ants

ANTs: init at 2.1.0 (0gyys1lf) and update ITK accordingly
This commit is contained in:
Michael Raskin 2017-03-18 18:42:24 +01:00 committed by GitHub
commit 4d5f33deff
4 changed files with 41 additions and 2 deletions

View File

@ -48,4 +48,8 @@ stdenv.mkDerivation {
'';
buildInputs = [ cmake wxGTK itk mesa libXft libXext libXi zlib libXmu libuuid ];
meta = {
broken = true;
};
}

View File

@ -0,0 +1,30 @@
{ stdenv, fetchFromGitHub, cmake, itk, vtk }:
stdenv.mkDerivation rec {
_name = "ANTs";
_version = "2.1.0";
name = "${_name}-${_version}";
src = fetchFromGitHub {
owner = "stnava";
repo = "ANTs";
rev = "4e02aa76621698e3513330dd9e863e22917e14b7";
sha256 = "0gyys1lf69bl3569cskxc8r5llwcr0dsyzvlby5skhfpsyw0dh8r";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ itk vtk ];
cmakeFlags = [ "-DANTS_SUPERBUILD=FALSE" "-DUSE_VTK=TRUE" ];
checkPhase = "ctest";
doCheck = false;
meta = with stdenv.lib; {
homepage = https://github.com/stnava/ANTs;
description = "Advanced normalization toolkit for medical image registration and other processing";
maintainers = with maintainers; [ bcdarwin ];
platforms = platforms.unix;
license = licenses.bsd3;
};
}

View File

@ -1,4 +1,4 @@
{stdenv, fetchurl, cmake, libX11, libuuid, xz}:
{ stdenv, fetchurl, cmake, libX11, libuuid, xz, vtk }:
stdenv.mkDerivation rec {
name = "itk-4.10.0";
@ -12,12 +12,15 @@ stdenv.mkDerivation rec {
"-DBUILD_TESTING=OFF"
"-DBUILD_EXAMPLES=OFF"
"-DBUILD_SHARED_LIBS=ON"
"-DModule_ITKIOMINC=ON"
"-DModule_ITKVtkGlue=ON"
"-DModule_ITKReview=ON"
];
enableParallelBuilding = true;
nativeBuildInputs = [ cmake xz ];
buildInputs = [ libX11 libuuid ];
buildInputs = [ libX11 libuuid vtk ];
meta = {
description = "Insight Segmentation and Registration Toolkit";

View File

@ -17063,6 +17063,8 @@ with pkgs;
alliance = callPackage ../applications/science/electronics/alliance { };
ants = callPackage ../applications/science/biology/ants { };
archimedes = callPackage ../applications/science/electronics/archimedes {
stdenv = overrideCC stdenv gcc49;
};