2010-08-02 10:58:53 +02:00
|
|
|
|
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
2014-06-15 11:12:03 +02:00
|
|
|
, zlib ? null
|
2014-06-15 13:26:44 +02:00
|
|
|
, szip ? null
|
2014-07-01 15:55:12 +02:00
|
|
|
, mpi ? null
|
2014-07-02 15:10:02 +02:00
|
|
|
, enableShared ? true
|
2010-08-02 10:58:53 +02:00
|
|
|
}:
|
2014-06-15 11:59:58 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.8.13";
|
|
|
|
name = "hdf5-${version}-patch1";
|
2010-08-02 10:58:53 +02:00
|
|
|
src = fetchurl {
|
2014-06-15 11:59:58 +02:00
|
|
|
url = "http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-${version}.tar.gz";
|
|
|
|
sha256 = "1h9qdl321gzm3ihdhlijbl9sh9qcdrw94j7izg64yfqhxj7b7xl2";
|
2010-08-02 10:58:53 +02:00
|
|
|
};
|
2014-06-15 11:12:03 +02:00
|
|
|
|
2014-07-01 15:55:12 +02:00
|
|
|
passthru = {
|
|
|
|
mpiSupport = (mpi != null);
|
|
|
|
inherit mpi;
|
|
|
|
};
|
|
|
|
|
2014-06-15 11:12:03 +02:00
|
|
|
buildInputs = []
|
2014-06-15 13:26:44 +02:00
|
|
|
++ stdenv.lib.optional (zlib != null) zlib
|
|
|
|
++ stdenv.lib.optional (szip != null) szip;
|
|
|
|
|
2014-07-01 15:55:12 +02:00
|
|
|
propagatedBuildInputs = []
|
|
|
|
++ stdenv.lib.optional (mpi != null) mpi;
|
|
|
|
|
|
|
|
configureFlags = "
|
|
|
|
${if szip != null then "--with-szlib=${szip}" else ""}
|
|
|
|
${if mpi != null then "--enable-parallel" else ""}
|
2014-07-02 15:10:02 +02:00
|
|
|
${if enableShared then "--enable-shared" else ""}
|
2014-07-01 15:55:12 +02:00
|
|
|
";
|
2010-08-02 10:58:53 +02:00
|
|
|
|
|
|
|
patches = [./bin-mv.patch];
|
|
|
|
|
|
|
|
meta = {
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Data model, library, and file format for storing and managing data";
|
2010-08-02 10:58:53 +02:00
|
|
|
longDescription = ''
|
2013-10-06 11:49:53 +02:00
|
|
|
HDF5 supports an unlimited variety of datatypes, and is designed for flexible and efficient
|
2010-08-02 10:58:53 +02:00
|
|
|
I/O and for high volume and complex data. HDF5 is portable and is extensible, allowing
|
|
|
|
applications to evolve in their use of HDF5. The HDF5 Technology suite includes tools and
|
|
|
|
applications for managing, manipulating, viewing, and analyzing data in the HDF5 format.
|
|
|
|
'';
|
|
|
|
homepage = http://www.hdfgroup.org/HDF5/;
|
|
|
|
};
|
|
|
|
}
|