2010-08-02 12:58:53 +04:00
|
|
|
|
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
2014-06-15 13:12:03 +04:00
|
|
|
, zlib ? null
|
2014-06-15 15:26:44 +04:00
|
|
|
, szip ? null
|
2014-07-01 17:55:12 +04:00
|
|
|
, mpi ? null
|
2010-08-02 12:58:53 +04:00
|
|
|
}:
|
2014-06-15 13:59:58 +04:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.8.13";
|
|
|
|
name = "hdf5-${version}-patch1";
|
2010-08-02 12:58:53 +04:00
|
|
|
src = fetchurl {
|
2014-06-15 13:59:58 +04:00
|
|
|
url = "http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-${version}.tar.gz";
|
|
|
|
sha256 = "1h9qdl321gzm3ihdhlijbl9sh9qcdrw94j7izg64yfqhxj7b7xl2";
|
2010-08-02 12:58:53 +04:00
|
|
|
};
|
2014-06-15 13:12:03 +04:00
|
|
|
|
2014-07-01 17:55:12 +04:00
|
|
|
passthru = {
|
|
|
|
mpiSupport = (mpi != null);
|
|
|
|
inherit mpi;
|
|
|
|
};
|
|
|
|
|
2014-06-15 13:12:03 +04:00
|
|
|
buildInputs = []
|
2014-06-15 15:26:44 +04:00
|
|
|
++ stdenv.lib.optional (zlib != null) zlib
|
|
|
|
++ stdenv.lib.optional (szip != null) szip;
|
|
|
|
|
2014-07-01 17:55:12 +04:00
|
|
|
propagatedBuildInputs = []
|
|
|
|
++ stdenv.lib.optional (mpi != null) mpi;
|
|
|
|
|
|
|
|
configureFlags = "
|
|
|
|
${if szip != null then "--with-szlib=${szip}" else ""}
|
|
|
|
${if mpi != null then "--enable-parallel" else ""}
|
|
|
|
";
|
2010-08-02 12:58:53 +04:00
|
|
|
|
|
|
|
patches = [./bin-mv.patch];
|
|
|
|
|
|
|
|
meta = {
|
2013-10-06 13:49:53 +04:00
|
|
|
description = "Data model, library, and file format for storing and managing data";
|
2010-08-02 12:58:53 +04:00
|
|
|
longDescription = ''
|
2013-10-06 13:49:53 +04:00
|
|
|
HDF5 supports an unlimited variety of datatypes, and is designed for flexible and efficient
|
2010-08-02 12:58:53 +04: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/;
|
|
|
|
};
|
|
|
|
}
|