at v206 47 lines 1.4 kB view raw
1 2{ stdenv 3, fetchurl 4, zlib ? null 5, szip ? null 6, mpi ? null 7, enableShared ? true 8}: 9stdenv.mkDerivation rec { 10 version = "1.8.14"; 11 name = "hdf5-${version}"; 12 src = fetchurl { 13 url = "http://www.hdfgroup.org/ftp/HDF5/releases/hdf5-${version}/src/hdf5-${version}.tar.gz"; 14 sha256 = "0f86gv32pjrrphvamgims1dd7f3bp46hjarbcdy8k4gmyzpgxghx"; 15 }; 16 17 passthru = { 18 mpiSupport = (mpi != null); 19 inherit mpi; 20 }; 21 22 buildInputs = [] 23 ++ stdenv.lib.optional (zlib != null) zlib 24 ++ stdenv.lib.optional (szip != null) szip; 25 26 propagatedBuildInputs = [] 27 ++ stdenv.lib.optional (mpi != null) mpi; 28 29 configureFlags = " 30 ${if szip != null then "--with-szlib=${szip}" else ""} 31 ${if mpi != null then "--enable-parallel" else ""} 32 ${if enableShared then "--enable-shared" else ""} 33 "; 34 35 patches = [./bin-mv.patch]; 36 37 meta = { 38 description = "Data model, library, and file format for storing and managing data"; 39 longDescription = '' 40 HDF5 supports an unlimited variety of datatypes, and is designed for flexible and efficient 41 I/O and for high volume and complex data. HDF5 is portable and is extensible, allowing 42 applications to evolve in their use of HDF5. The HDF5 Technology suite includes tools and 43 applications for managing, manipulating, viewing, and analyzing data in the HDF5 format. 44 ''; 45 homepage = http://www.hdfgroup.org/HDF5/; 46 }; 47}