2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
itk,
|
|
|
|
Cocoa,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2024-09-19 14:19:46 +00:00
|
|
|
pname = "c3d";
|
|
|
|
version = "1.4.1-unstable-2024-08-07";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyushkevich";
|
2024-09-19 14:19:46 +00:00
|
|
|
repo = "c3d";
|
|
|
|
rev = "9e6174153ab87eae014f5b802413478c8fbc9a1a";
|
|
|
|
hash = "sha256-s2/XRyKoiMnF6cRsxxNUSlNtksbOyKSlk8hAGxJELqw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = [ itk ] ++ lib.optional stdenv.hostPlatform.isDarwin Cocoa;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
cmakeFlags = [ "-DCONVERT3D_USE_ITK_REMOTE_MODULES=OFF" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 12:50:04 +00:00
|
|
|
homepage = "https://github.com/pyushkevich/c3d";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Medical imaging processing tool";
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
platforms = platforms.unix;
|
2020-10-11 12:50:04 +00:00
|
|
|
license = licenses.gpl3;
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isAarch64;
|
2021-12-06 16:07:01 +00:00
|
|
|
# /build/source/itkextras/OneDimensionalInPlaceAccumulateFilter.txx:312:10: fatal error: xmmintrin.h: No such file or directory
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|