1 { lib, stdenv, gtest, fetchFromGitHub, cmake, boost, eigen, python, vtk, zlib, tbb }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "0i2v97m66ir5myvi5b123r7zcagwy551b73s984gk7lksl5yiqxk";
12 fetchSubmodules = true;
17 "-DBUILD_ALL_MODULES=ON"
24 ctest -E '(Polynomial|ConvolutionFunction|Downsampling|EdgeTable|InterpolateExtrapolateImage)'
26 # testPolynomial - segfaults for some reason
27 # testConvolutionFunction, testDownsampling - main not called correctly
28 # testEdgeTable, testInterpolateExtrapolateImageFunction - setup fails
31 install -Dm644 -t "$out/share/bash-completion/completions/mirtk" share/completion/bash/mirtk
34 nativeBuildInputs = [ cmake gtest ];
35 buildInputs = [ boost eigen python vtk zlib tbb ];
38 homepage = "https://github.com/BioMedIA/MIRTK";
39 description = "Medical image registration library and tools";
40 maintainers = with maintainers; [ bcdarwin ];
41 platforms = platforms.linux;
42 license = licenses.asl20;