Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
boost,
|
|
eigen,
|
|
hdf5,
|
|
mpiSupport ? hdf5.mpiSupport,
|
|
mpi ? hdf5.mpi,
|
|
}:
|
|
|
|
assert mpiSupport -> mpi != null;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "highfive${lib.optionalString mpiSupport "-mpi"}";
|
|
version = "2.10.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "BlueBrain";
|
|
repo = "HighFive";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Nv+nbel/xGlGTB8sKF0EM1xwz/ZEri5uGB7ma6Ba6fo=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [
|
|
boost
|
|
eigen
|
|
hdf5
|
|
];
|
|
|
|
passthru = {
|
|
inherit mpiSupport mpi;
|
|
};
|
|
|
|
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" ]);
|
|
|
|
meta = with lib; {
|
|
description = "Header-only C++ HDF5 interface";
|
|
license = licenses.boost;
|
|
homepage = "https://bluebrain.github.io/HighFive/";
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ robertodr ];
|
|
};
|
|
}
|