summary refs log tree commit diff
path: root/pkgs/applications/graphics/c3d/default.nix
blob: 61efec8dc9d45312ffb7b20dfca4c25f8891ff26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchgit, cmake, itk4, Cocoa }:

stdenv.mkDerivation {
  pname   = "c3d";
  version = "unstable-2019-10-22";

  src = fetchgit {
    url    = "https://github.com/pyushkevich/c3d";
    rev    = "c04e2b84568654665c64d8843378c8bbd58ba9b0";
    sha256 = "0lzldxvshl9q362mg76byc7s5zc9qx7mxf2wgyij5vysx8mihx3q";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ itk4 ]
    ++ stdenv.lib.optional stdenv.isDarwin Cocoa;

  meta = with stdenv.lib; {
    homepage = "http://www.itksnap.org/c3d";
    description = "Medical imaging processing tool";
    maintainers = with maintainers; [ bcdarwin ];
    platforms = platforms.unix;
    license = licenses.gpl2;
    broken = stdenv.isAarch64;
    # /build/git-3453f61/itkextras/OneDimensionalInPlaceAccumulateFilter.txx:311:10: fatal error: xmmintrin.h: No such file or directory
  };
}