Merge pull request #252932 from r-ryantm/auto-update/ants

ants: 2.4.4 -> 2.5.0
This commit is contained in:
Pol Dellaiera 2023-09-03 08:30:51 +02:00 committed by GitHub
commit cb8d5ad83e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,32 +1,54 @@
{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper, itk, vtk, Cocoa }: { lib
, stdenv
, fetchFromGitHub
, cmake
, makeBinaryWrapper
, itk
, vtk
, Cocoa
}:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "ANTs"; pname = "ANTs";
version = "2.4.4"; version = "2.5.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ANTsX"; owner = "ANTsX";
repo = "ANTs"; repo = "ANTs";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-GQndI8ayBvqujb2/qXT6RBAfr8hNPCI5IbwYkPlyNg0="; hash = "sha256-rSibcsprhMC1qsuZN8ou32QPLf8n62BiDzpnTRWRx0Q=";
}; };
nativeBuildInputs = [ cmake makeWrapper ]; nativeBuildInputs = [
buildInputs = [ itk vtk ] ++ lib.optionals stdenv.isDarwin [ Cocoa ]; cmake
makeBinaryWrapper
];
cmakeFlags = [ "-DANTS_SUPERBUILD=FALSE" "-DUSE_VTK=TRUE" ]; buildInputs = [
itk
vtk
] ++ lib.optionals stdenv.isDarwin [
Cocoa
];
cmakeFlags = [
"-DANTS_SUPERBUILD=FALSE"
"-DUSE_VTK=TRUE"
];
postInstall = '' postInstall = ''
for file in $out/bin/*; do for file in $out/bin/*; do
wrapProgram $file --set ANTSPATH "$out/bin" wrapProgram $file --set PATH "$out/bin"
done done
''; '';
meta = with lib; { meta = {
homepage = "https://github.com/ANTsX/ANTs"; changelog = "https://github.com/ANTsX/ANTs/releases/tag/v${finalAttrs.version}";
description = "Advanced normalization toolkit for medical image registration and other processing"; description = "Advanced normalization toolkit for medical image registration and other processing";
maintainers = with maintainers; [ bcdarwin ]; homepage = "https://github.com/ANTsX/ANTs";
platforms = platforms.unix; license = lib.licenses.asl20;
license = licenses.bsd3; mainProgram = "antsRegistration";
maintainers = with lib.maintainers; [ bcdarwin ];
platforms = lib.platforms.unix;
}; };
} })