2010-08-02 09:58:53 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
2015-10-19 13:57:24 +01:00
|
|
|
, cpp ? false
|
|
|
|
, gfortran ? null
|
2014-06-15 10:12:03 +01:00
|
|
|
, zlib ? null
|
2014-06-15 12:26:44 +01:00
|
|
|
, szip ? null
|
2014-07-01 14:55:12 +01:00
|
|
|
, mpi ? null
|
2014-07-02 14:10:02 +01:00
|
|
|
, enableShared ? true
|
2010-08-02 09:58:53 +01:00
|
|
|
}:
|
2015-11-11 14:14:28 +00:00
|
|
|
|
|
|
|
with { inherit (stdenv.lib) optional; };
|
|
|
|
|
2014-06-15 10:59:58 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-11-19 14:40:36 +00:00
|
|
|
version = "1.8.16";
|
2014-11-16 08:27:32 +00:00
|
|
|
name = "hdf5-${version}";
|
2010-08-02 09:58:53 +01:00
|
|
|
src = fetchurl {
|
2015-11-19 14:40:36 +00:00
|
|
|
url = "http://www.hdfgroup.org/ftp/HDF5/releases/${name}/src/${name}.tar.bz2";
|
|
|
|
sha256 = "1ilq8pn9lxbf2wj2rdzwqabxismznjj1d23iw6g78w0bl5dsxahk";
|
2014-11-16 08:27:32 +00:00
|
|
|
};
|
2014-06-15 10:12:03 +01:00
|
|
|
|
2014-07-01 14:55:12 +01:00
|
|
|
passthru = {
|
|
|
|
mpiSupport = (mpi != null);
|
|
|
|
inherit mpi;
|
|
|
|
};
|
|
|
|
|
2014-06-15 10:12:03 +01:00
|
|
|
buildInputs = []
|
2015-11-11 14:14:28 +00:00
|
|
|
++ optional (gfortran != null) gfortran
|
|
|
|
++ optional (zlib != null) zlib
|
|
|
|
++ optional (szip != null) szip;
|
2014-06-15 12:26:44 +01:00
|
|
|
|
2014-07-01 14:55:12 +01:00
|
|
|
propagatedBuildInputs = []
|
2015-11-11 14:14:28 +00:00
|
|
|
++ optional (mpi != null) mpi;
|
|
|
|
|
|
|
|
configureFlags = []
|
|
|
|
++ optional cpp "--enable-cxx"
|
|
|
|
++ optional (gfortran != null) "--enable-fortran"
|
|
|
|
++ optional (szip != null) "--with-szlib=${szip}"
|
|
|
|
++ optional (mpi != null) "--enable-parallel"
|
|
|
|
++ optional enableShared "--enable-shared";
|
|
|
|
|
2010-08-02 09:58:53 +01:00
|
|
|
patches = [./bin-mv.patch];
|
2015-11-11 14:14:28 +00:00
|
|
|
|
2010-08-02 09:58:53 +01:00
|
|
|
meta = {
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Data model, library, and file format for storing and managing data";
|
2010-08-02 09:58:53 +01:00
|
|
|
longDescription = ''
|
2013-10-06 10:49:53 +01:00
|
|
|
HDF5 supports an unlimited variety of datatypes, and is designed for flexible and efficient
|
2010-08-02 09:58:53 +01: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/;
|
|
|
|
};
|
|
|
|
}
|