16 stdenv.mkDerivation rec {
18 version = "unstable-2022-07-22";
20 src = fetchFromGitHub {
23 rev = "973ce2fe3f9508dec68892dbf97cca39067aa3d6";
24 hash = "sha256-vKgkDrbyGOcbaYlxys1duC8ZNG0Y2nqh3TtSQ06Ox0Q=";
25 fetchSubmodules = true;
30 "-DBUILD_ALL_MODULES=ON"
37 # tries to download data during configuration
39 substituteInPlace Packages/DrawEM/CMakeLists.txt --replace "include(Atlases.cmake)" ""
42 # tests don't seem to be maintained and gtest fails to link with BUILD_TESTING=ON;
43 # unclear if specific to Nixpkgs
47 install -Dm644 -t "$out/share/bash-completion/completions/mirtk" share/completion/bash/mirtk
50 env.NIX_CFLAGS_COMPILE = "-Wno-changes-meaning";
52 nativeBuildInputs = [ cmake ];
66 homepage = "https://github.com/BioMedIA/MIRTK";
67 description = "Medical image registration library and tools";
68 mainProgram = "mirtk";
69 maintainers = with maintainers; [ bcdarwin ];
70 platforms = platforms.linux;
71 license = licenses.asl20;