a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
32 lines
908 B
Nix
32 lines
908 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper, itk, vtk, Cocoa }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ANTs";
|
|
version = "2.4.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ANTsX";
|
|
repo = "ANTs";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-S4HYhsqof27UXEYjKvbod8N7PkZDmwLdwcEAvJD0W5g=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake makeWrapper ];
|
|
buildInputs = [ itk vtk ] ++ lib.optionals stdenv.isDarwin [ Cocoa ];
|
|
|
|
cmakeFlags = [ "-DANTS_SUPERBUILD=FALSE" "-DUSE_VTK=TRUE" ];
|
|
|
|
postInstall = ''
|
|
for file in $out/bin/*; do
|
|
wrapProgram $file --set ANTSPATH "$out/bin"
|
|
done
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/ANTsX/ANTs";
|
|
description = "Advanced normalization toolkit for medical image registration and other processing";
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
platforms = platforms.unix;
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|