mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
37b064fcc7
Required by h5py in mpi mode.
48 lines
1.4 KiB
Nix
48 lines
1.4 KiB
Nix
|
|
{ stdenv
|
|
, fetchurl
|
|
, zlib ? null
|
|
, szip ? null
|
|
, mpi ? null
|
|
, enableShared ? true
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
version = "1.8.13";
|
|
name = "hdf5-${version}-patch1";
|
|
src = fetchurl {
|
|
url = "http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-${version}.tar.gz";
|
|
sha256 = "1h9qdl321gzm3ihdhlijbl9sh9qcdrw94j7izg64yfqhxj7b7xl2";
|
|
};
|
|
|
|
passthru = {
|
|
mpiSupport = (mpi != null);
|
|
inherit mpi;
|
|
};
|
|
|
|
buildInputs = []
|
|
++ stdenv.lib.optional (zlib != null) zlib
|
|
++ stdenv.lib.optional (szip != null) szip;
|
|
|
|
propagatedBuildInputs = []
|
|
++ stdenv.lib.optional (mpi != null) mpi;
|
|
|
|
configureFlags = "
|
|
${if szip != null then "--with-szlib=${szip}" else ""}
|
|
${if mpi != null then "--enable-parallel" else ""}
|
|
${if enableShared then "--enable-shared" else ""}
|
|
";
|
|
|
|
patches = [./bin-mv.patch];
|
|
|
|
meta = {
|
|
description = "Data model, library, and file format for storing and managing data";
|
|
longDescription = ''
|
|
HDF5 supports an unlimited variety of datatypes, and is designed for flexible and efficient
|
|
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/;
|
|
};
|
|
}
|