git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
35 lines
935 B
Nix
35 lines
935 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
itk,
|
|
Cocoa,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "elastix";
|
|
version = "5.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SuperElastix";
|
|
repo = "elastix";
|
|
rev = "refs/tags/${finalAttrs.version}";
|
|
hash = "sha256-edUMj8sjku8EVYaktteIDS+ouaN3kg+CXQCeSWKlLDI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ itk ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Cocoa ];
|
|
|
|
doCheck = !stdenv.hostPlatform.isDarwin; # usual dynamic linker issues
|
|
|
|
meta = with lib; {
|
|
homepage = "https://elastix.lumc.nl";
|
|
description = "Image registration toolkit based on ITK";
|
|
changelog = "https://github.com/SuperElastix/elastix/releases/tag/${finalAttrs.version}";
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
mainProgram = "elastix";
|
|
platforms = platforms.x86_64; # libitkpng linker issues with ITK 5.1
|
|
license = licenses.asl20;
|
|
};
|
|
})
|