git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #4407 from christopherpoole/gdcm

Added the grassroots DICOM library.

commit2cdd7d71c1df2eef3a8987639c8cee240d047c13 authorPeter Simons <simons@cryp.to> dateMon 13 Oct 2014, 12:51 (12 years ago) parent0c121b0f5e7b08
2 files changed+40
pkgs/development/libraries/gdcm/default.nix+38 pkgs/top-level/all-packages.nix+2
pkgs/development/libraries/gdcm/default.nixnew file+38
@@ -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/${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+
pkgs/top-level/all-packages.nix+2
@@ -5006,6 +5006,8 @@ let
50065006
50075007 gdal = callPackage ../development/libraries/gdal { };
50085008
5009+ gdcm = callPackage ../development/libraries/gdcm { };
5010+
50095011 ggz_base_libs = callPackage ../development/libraries/ggz_base_libs {};
50105012
50115013 giblib = callPackage ../development/libraries/giblib { };