Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
53 lines
1.0 KiB
Nix
53 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
makeBinaryWrapper,
|
|
itk,
|
|
vtk,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "ANTs";
|
|
version = "2.6.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ANTsX";
|
|
repo = "ANTs";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-AaurwFIDVKhAp8+Gu3TUlGJP33ChQ6flPTYWe/cVK0w=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
makeBinaryWrapper
|
|
];
|
|
|
|
buildInputs = [
|
|
itk
|
|
vtk
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DANTS_SUPERBUILD=FALSE"
|
|
"-DUSE_VTK=TRUE"
|
|
];
|
|
|
|
postInstall = ''
|
|
for file in $out/bin/*; do
|
|
wrapProgram $file --prefix PATH : "$out/bin"
|
|
done
|
|
'';
|
|
|
|
meta = {
|
|
changelog = "https://github.com/ANTsX/ANTs/releases/tag/v${finalAttrs.version}";
|
|
description = "Advanced normalization toolkit for medical image registration and other processing";
|
|
homepage = "https://github.com/ANTsX/ANTs";
|
|
license = lib.licenses.asl20;
|
|
mainProgram = "antsRegistration";
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|