doc: emphasize trade-off between versionCheckHook and testers.testVersion (#344321)
[NixPkgs.git] / pkgs / development / libraries / science / biology / elastix / default.nix
blobefc6eee5c46368176380fec3f6d14a865bd93c63
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   cmake,
6   itk,
7   Cocoa,
8 }:
10 stdenv.mkDerivation (finalAttrs: {
11   pname = "elastix";
12   version = "5.2.0";
14   src = fetchFromGitHub {
15     owner = "SuperElastix";
16     repo = "elastix";
17     tag = finalAttrs.version;
18     hash = "sha256-edUMj8sjku8EVYaktteIDS+ouaN3kg+CXQCeSWKlLDI=";
19   };
21   nativeBuildInputs = [ cmake ];
22   buildInputs = [ itk ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Cocoa ];
24   doCheck = !stdenv.hostPlatform.isDarwin; # usual dynamic linker issues
26   meta = with lib; {
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;
34   };