ANTs: init at 2.1.0 (0gyys1lf)

This commit is contained in:
Ben Darwin 2017-03-01 20:55:42 -05:00
parent 12ca09d14e
commit 05359c327b
3 changed files with 37 additions and 2 deletions

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

@ -16930,6 +16930,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;
};