2022-12-28 21:21:41 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, itk_5_2, Cocoa }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "c3d";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "unstable-2021-09-14";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyushkevich";
|
|
|
|
repo = pname;
|
2021-12-06 16:07:01 +00:00
|
|
|
rev = "cc06e6e2f04acd3d6faa3d8c9a66b499f02d4388";
|
|
|
|
sha256 = "sha256:1ql1y6694njsmdapywhppb54viyw8wdpaxxr1b3hm2rqhvwmhn52";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2022-12-28 21:21:41 +00:00
|
|
|
buildInputs = [ itk_5_2 ]
|
2021-01-17 00:15:33 +00:00
|
|
|
++ lib.optional stdenv.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;
|
2020-04-24 23:36:52 +00:00
|
|
|
broken = stdenv.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
|
|
|
};
|
|
|
|
}
|