@@ -0,0 +1,38 @@
1+{ stdenv, fetchurl, cmake }:
2+
3+stdenv.mkDerivation rec {
4+ version = "2.4.4";
5+ name = "gdcm-${version}";
6+
7+ src = fetchurl {
8+ url = "mirror://sourceforge/gdcm/gdcm%202.x/GDCM$20${version}/${name}.tar.bz2";
9+ sha256 = "07svgp7c928sw712gq6rx4h0c6wp2kr1n8fmxjlzb031l51jzkf5";
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+ '';
23+
24+ enableParallelBuilding = true;
25+ buildInputs = [ cmake ];
26+ propagatedBuildInputs = [ ];
27+
28+ meta = {
29+ description = "The grassroots cross-platform DICOM implementation.";
30+ longDescription = ''
31+ Grassroots DICOM (GDCM) is an implementation of the DICOM standard designed to be open source so that researchers may access clinical data directly.
32+ 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.
33+ '';
34+ homepage = http://gdcm.sourceforge.net/;
35+ platforms = stdenv.lib.platforms.all;
36+ };
37+}
38+