2017-03-19 22:54:37 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, makeWrapper, itk, vtk }:
|
2017-03-02 01:55:42 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
_name = "ANTs";
|
2017-09-18 19:13:41 +01:00
|
|
|
_version = "2.2.0";
|
2017-03-02 01:55:42 +00:00
|
|
|
name = "${_name}-${_version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-09-18 19:13:41 +01:00
|
|
|
owner = "ANTsX";
|
2017-03-02 01:55:42 +00:00
|
|
|
repo = "ANTs";
|
2017-09-18 19:13:41 +01:00
|
|
|
rev = "37ad4e20be3a5ecd26c2e4e41b49e778a0246c3d";
|
|
|
|
sha256 = "1hrdwv3m9xh3yf7l0rm2ggxc2xzckfb8srs88g485ibfszx7i03q";
|
2017-03-02 01:55:42 +00:00
|
|
|
};
|
|
|
|
|
2017-03-19 22:54:37 +00:00
|
|
|
nativeBuildInputs = [ cmake makeWrapper ];
|
2017-03-02 01:55:42 +00:00
|
|
|
buildInputs = [ itk vtk ];
|
|
|
|
|
2019-02-22 01:51:58 +00:00
|
|
|
cmakeFlags = [ "-DANTS_SUPERBUILD=FALSE" "-DUSE_VTK=TRUE" ];
|
2017-09-18 19:13:41 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2017-03-02 01:55:42 +00:00
|
|
|
|
2017-03-19 22:54:37 +00:00
|
|
|
postInstall = ''
|
|
|
|
for file in $out/bin/*; do
|
|
|
|
wrapProgram $file --set ANTSPATH "$out/bin"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2017-03-02 01:55:42 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-09-18 19:13:41 +01:00
|
|
|
homepage = https://github.com/ANTxS/ANTs;
|
2017-03-02 01:55:42 +00:00
|
|
|
description = "Advanced normalization toolkit for medical image registration and other processing";
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|