1{ stdenv, fetchurl, cmake, vtk }:
2
3stdenv.mkDerivation rec {
4 version = "2.6.4";
5 name = "gdcm-${version}";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/gdcm/${name}.tar.bz2";
9 sha256 = "14bysjdldq7xb9k1ayskxijm08dy2n45v9bg379dqrcz1q5xq5mi";
10 };
11
12 dontUseCmakeBuildDir = true;
13 preConfigure = ''
14 cmakeDir=$PWD
15 mkdir ../build
16 cd ../build
17 '';
18
19 cmakeFlags = ''
20 -DGDCM_BUILD_APPLICATIONS=ON
21 -DGDCM_BUILD_SHARED_LIBS=ON
22 -DGDCM_USE_VTK=ON
23 '';
24
25 enableParallelBuilding = true;
26 buildInputs = [ cmake vtk ];
27 propagatedBuildInputs = [ ];
28
29 meta = {
30 description = "The grassroots cross-platform DICOM implementation";
31 longDescription = ''
32 Grassroots DICOM (GDCM) is an implementation of the DICOM standard designed to be open source so that researchers may access clinical data directly.
33 GDCM includes a file format definition and a network communications protocol, both of which should be extended to provide a full set of tools for a researcher or small medical imaging vendor to interface with an existing medical database.
34 '';
35 homepage = http://gdcm.sourceforge.net/;
36 platforms = stdenv.lib.platforms.all;
37 };
38}
39