1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 itk,
7}:
8
9stdenv.mkDerivation (finalAttrs: {
10 pname = "elastix";
11 version = "5.2.0";
12
13 src = fetchFromGitHub {
14 owner = "SuperElastix";
15 repo = "elastix";
16 tag = finalAttrs.version;
17 hash = "sha256-edUMj8sjku8EVYaktteIDS+ouaN3kg+CXQCeSWKlLDI=";
18 };
19
20 nativeBuildInputs = [ cmake ];
21 buildInputs = [ itk ];
22
23 doCheck = !stdenv.hostPlatform.isDarwin; # usual dynamic linker issues
24
25 meta = with lib; {
26 homepage = "https://elastix.dev";
27 description = "Image registration toolkit based on ITK";
28 changelog = "https://github.com/SuperElastix/elastix/releases/tag/${finalAttrs.version}";
29 maintainers = with maintainers; [ bcdarwin ];
30 mainProgram = "elastix";
31 platforms = platforms.x86_64; # libitkpng linker issues with ITK 5.1
32 license = licenses.asl20;
33 };
34})