e9dbe1a2a3
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/hdf5-threadsafe/versions. These checks were done: - built on NixOS - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5diff -h’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5diff --help’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5diff -V’ and found version 1.10.2 - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5diff --version’ and found version 1.10.2 - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5ls -h’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5ls --help’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5ls -V’ and found version 1.10.2 - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5ls --version’ and found version 1.10.2 - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5dump -h’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5dump --help’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5dump -V’ and found version 1.10.2 - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5dump --version’ and found version 1.10.2 - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5mkgrp -h’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5mkgrp --help’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5mkgrp -V’ and found version 1.10.2 - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5mkgrp --version’ and found version 1.10.2 - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5clear -h’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5clear --help’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5clear -V’ and found version 1.10.2 - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5clear --version’ and found version 1.10.2 - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5import -h’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5import -V’ and found version 1.10.2 - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5repack -h’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5repack --help’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5repack -V’ and found version 1.10.2 - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5repack --version’ and found version 1.10.2 - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5jam -h’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5jam --help’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5jam -V’ and found version 1.10.2 - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5unjam -h’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5unjam --help’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5unjam -V’ and found version 1.10.2 - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5copy -h’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5copy --help’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5copy -V’ and found version 1.10.2 - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5copy --version’ and found version 1.10.2 - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5format_convert -h’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5format_convert --help’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5format_convert -V’ and found version 1.10.2 - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5format_convert --version’ and found version 1.10.2 - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5stat -h’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5stat --help’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5stat -V’ and found version 1.10.2 - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5stat --version’ and found version 1.10.2 - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5perf_serial help’ got 0 exit code - ran ‘/nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2/bin/h5cc --help’ got 0 exit code - found 1.10.2 with grep in /nix/store/29yg9dx5p3ppcvyz7fk2lb14hmmy2slj-hdf5-1.10.2 - directory tree listing: https://gist.github.com/aedb29e367d0b709b77bbdc794b96dd6
69 lines
2.0 KiB
Nix
69 lines
2.0 KiB
Nix
{ stdenv
|
|
, fetchurl
|
|
, gcc
|
|
, removeReferencesTo
|
|
, cpp ? false
|
|
, gfortran ? null
|
|
, zlib ? null
|
|
, szip ? null
|
|
, mpi ? null
|
|
, enableShared ? true
|
|
}:
|
|
|
|
# cpp and mpi options are mutually exclusive
|
|
# (--enable-unsupported could be used to force the build)
|
|
assert !cpp || mpi == null;
|
|
|
|
let inherit (stdenv.lib) optional optionals; in
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.10.2";
|
|
name = "hdf5-${version}";
|
|
src = fetchurl {
|
|
url = "https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/${name}/src/${name}.tar.bz2";
|
|
sha256 = "0wfb3w6dzi6zr2g1sdswqy9lxbp7yr4blvyi7k2xya7izmxmpb8w";
|
|
};
|
|
|
|
passthru = {
|
|
mpiSupport = (mpi != null);
|
|
inherit mpi;
|
|
};
|
|
|
|
nativeBuildInputs = [ removeReferencesTo ];
|
|
|
|
buildInputs = []
|
|
++ optional (gfortran != null) gfortran
|
|
++ optional (szip != null) szip;
|
|
|
|
propagatedBuildInputs = []
|
|
++ optional (zlib != null) zlib
|
|
++ optional (mpi != null) mpi;
|
|
|
|
configureFlags = []
|
|
++ optional cpp "--enable-cxx"
|
|
++ optional (gfortran != null) "--enable-fortran"
|
|
++ optional (szip != null) "--with-szlib=${szip}"
|
|
++ optionals (mpi != null) ["--enable-parallel" "CC=${mpi}/bin/mpicc"]
|
|
++ optional enableShared "--enable-shared";
|
|
|
|
patches = [./bin-mv.patch];
|
|
|
|
postInstall = ''
|
|
find "$out" -type f -exec remove-references-to -t ${stdenv.cc} '{}' +
|
|
'';
|
|
|
|
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.
|
|
'';
|
|
license = stdenv.lib.licenses.free; # BSD-like
|
|
homepage = https://www.hdfgroup.org/HDF5/;
|
|
platforms = stdenv.lib.platforms.unix;
|
|
broken = (gfortran != null) && stdenv.isDarwin;
|
|
};
|
|
}
|