10 stdenv.mkDerivation (finalAttrs: {
14 src = fetchFromGitHub {
15 owner = "SuperElastix";
17 tag = finalAttrs.version;
18 hash = "sha256-edUMj8sjku8EVYaktteIDS+ouaN3kg+CXQCeSWKlLDI=";
21 nativeBuildInputs = [ cmake ];
22 buildInputs = [ itk ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Cocoa ];
24 doCheck = !stdenv.hostPlatform.isDarwin; # usual dynamic linker issues
27 homepage = "https://elastix.dev";
28 description = "Image registration toolkit based on ITK";
29 changelog = "https://github.com/SuperElastix/elastix/releases/tag/${finalAttrs.version}";
30 maintainers = with maintainers; [ bcdarwin ];
31 mainProgram = "elastix";
32 platforms = platforms.x86_64; # libitkpng linker issues with ITK 5.1
33 license = licenses.asl20;