Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, cmake, itk, Cocoa }: 2 3stdenv.mkDerivation rec { 4 pname = "elastix"; 5 version = "5.1.0"; 6 7 src = fetchFromGitHub { 8 owner = "SuperElastix"; 9 repo = pname; 10 rev = version; 11 hash = "sha256-wFeLU8IwiF43a9TAvecQG+QMw88PQZdJ8sI1Zz3ZeXc="; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 buildInputs = [ itk ] ++ lib.optionals stdenv.isDarwin [ Cocoa ]; 16 17 doCheck = !stdenv.isDarwin; # usual dynamic linker issues 18 19 meta = with lib; { 20 homepage = "https://elastix.lumc.nl"; 21 description = "Image registration toolkit based on ITK"; 22 maintainers = with maintainers; [ bcdarwin ]; 23 platforms = platforms.x86_64; # libitkpng linker issues with ITK 5.1 24 license = licenses.asl20; 25 }; 26}