Unverified Commit 480ac1c7 authored by Vladimír Čunát's avatar Vladimír Čunát Committed by GitHub
Browse files

highfive: 2.10.1 -> 3.3.0 (#493021)

parents 5829b74e 40dc5785
Loading
Loading
Loading
Loading
+8 −15
Original line number Diff line number Diff line
@@ -3,8 +3,6 @@
  stdenv,
  fetchFromGitHub,
  cmake,
  boost,
  eigen,
  hdf5,
  mpiSupport ? hdf5.mpiSupport,
  mpi ? hdf5.mpi,
@@ -14,20 +12,18 @@ assert mpiSupport -> mpi != null;

stdenv.mkDerivation (finalAttrs: {
  pname = "highfive${lib.optionalString mpiSupport "-mpi"}";
  version = "2.10.1";
  version = "3.3.0";

  src = fetchFromGitHub {
    owner = "BlueBrain";
    repo = "HighFive";
    rev = "v${finalAttrs.version}";
    sha256 = "sha256-Nv+nbel/xGlGTB8sKF0EM1xwz/ZEri5uGB7ma6Ba6fo=";
    owner = "highfive-devs";
    repo = "highfive";
    tag = "v${finalAttrs.version}";
    sha256 = "sha256-BuDvoQgMdZIDHYwXqigM78DQ+WtT+K0FdXERMUjmXc0=";
  };

  nativeBuildInputs = [ cmake ];

  buildInputs = [
    boost
    eigen
    hdf5
  ];

@@ -36,19 +32,16 @@ stdenv.mkDerivation (finalAttrs: {
  };

  cmakeFlags = [
    "-DHIGHFIVE_USE_BOOST=ON"
    "-DHIGHFIVE_USE_EIGEN=ON"
    "-DHIGHFIVE_EXAMPLES=OFF"
    "-DHIGHFIVE_UNIT_TESTS=OFF"
    "-DHIGHFIVE_USE_INSTALL_DEPS=ON"
    (lib.cmakeFeature "CMAKE_POLICY_VERSION_MINIMUM" "3.5")
  ]
  ++ (lib.optionals mpiSupport [ "-DHIGHFIVE_PARALLEL_HDF5=ON" ]);
  ++ (lib.optionals mpiSupport [ "-DHDF5_IS_PARALLEL=ON" ]);

  meta = {
    description = "Header-only C++ HDF5 interface";
    homepage = "https://github.com/highfive-devs/highfive";
    changelog = "https://github.com/highfive-devs/highfive/blob/${finalAttrs.src.tag}/CHANGELOG.md";
    license = lib.licenses.boost;
    homepage = "https://bluebrain.github.io/HighFive/";
    platforms = lib.platforms.unix;
    maintainers = with lib.maintainers; [ robertodr ];
  };