Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
78 lines
1.6 KiB
Nix
78 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
python3,
|
|
boost186,
|
|
eigen,
|
|
libGLU,
|
|
fltk,
|
|
vtk,
|
|
zlib,
|
|
onetbb,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "mirtk";
|
|
version = "2.0.0-unstable-2025-02-27";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "BioMedIA";
|
|
repo = "MIRTK";
|
|
rev = "ef71a176c120447b3f95291901af7af8b4f00544";
|
|
hash = "sha256-77Om/+qApt9AiSYbaPc2QNh+RKcYajobD7VDhvPtf/I=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
cmakeFlags = [
|
|
"-DWITH_VTK=ON"
|
|
"-DMODULE_Deformable=ON"
|
|
"-DMODULE_Mapping=ON"
|
|
"-DMODULE_Scripting=ON"
|
|
"-DMODULE_Viewer=ON"
|
|
"-DMODULE_DrawEM=OFF"
|
|
"-DWITH_TBB=ON"
|
|
"-DWITH_GIFTICLIB=ON"
|
|
"-DWITH_NIFTILIB=ON"
|
|
];
|
|
|
|
# tests don't seem to be maintained and gtest fails to link with BUILD_TESTING=ON;
|
|
# unclear if specific to Nixpkgs
|
|
doCheck = false;
|
|
|
|
postPatch = ''
|
|
# Their old `FindTBB` module conflicts with others.
|
|
rm CMake/Modules/FindTBB.cmake
|
|
substituteInPlace CMake/Modules/CMakeLists.txt \
|
|
--replace-fail '"FindTBB.cmake"' ""
|
|
'';
|
|
|
|
postInstall = ''
|
|
install -Dm644 -t "$out/share/bash-completion/completions/mirtk" share/completion/bash/mirtk
|
|
'';
|
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-changes-meaning";
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [
|
|
boost186
|
|
eigen
|
|
fltk
|
|
libGLU
|
|
python3
|
|
onetbb
|
|
vtk
|
|
zlib
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/BioMedIA/MIRTK";
|
|
description = "Medical image registration library and tools";
|
|
mainProgram = "mirtk";
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
platforms = lib.platforms.linux;
|
|
license = lib.licenses.asl20;
|
|
};
|
|
}
|