2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, itk4, Cocoa }:
|
2017-03-09 22:00:30 +00:00
|
|
|
|
2020-10-05 19:44:01 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2017-09-08 20:45:08 +00:00
|
|
|
pname = "c3d";
|
2020-10-05 19:44:01 +00:00
|
|
|
version = "unstable-2020-10-05";
|
2017-03-09 22:00:30 +00:00
|
|
|
|
2020-10-05 19:44:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyushkevich";
|
|
|
|
repo = pname;
|
|
|
|
rev = "0a87e3972ea403babbe2d05ec6d50855e7c06465";
|
|
|
|
sha256 = "0wsmkifqrcfy13fnwvinmnq1m0lkqmpyg7bgbwnb37mbrlbq06wf";
|
2017-03-09 22:00:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2019-10-26 20:08:37 +00:00
|
|
|
buildInputs = [ itk4 ]
|
2021-01-15 13:21:58 +00:00
|
|
|
++ lib.optional stdenv.isDarwin Cocoa;
|
2017-03-09 22:00:30 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-05 19:44:01 +00:00
|
|
|
homepage = "https://github.com/pyushkevich/c3d";
|
2017-03-09 22:00:30 +00:00
|
|
|
description = "Medical imaging processing tool";
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
platforms = platforms.unix;
|
2020-10-05 19:44:01 +00:00
|
|
|
license = licenses.gpl3;
|
2020-02-13 19:23:23 +00:00
|
|
|
broken = stdenv.isAarch64;
|
|
|
|
# /build/git-3453f61/itkextras/OneDimensionalInPlaceAccumulateFilter.txx:311:10: fatal error: xmmintrin.h: No such file or directory
|
2017-03-09 22:00:30 +00:00
|
|
|
};
|
|
|
|
}
|