nixpkgs/pkgs/applications/science/biology/ants/default.nix

31 lines
821 B
Nix
Raw Normal View History

2017-03-02 02:55:42 +01:00
{ 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;
};
}