blob: 2e38ca138c1b570c338d34ffec0249c379270247 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
lib,
stdenv,
fetchFromGitHub,
cmake,
hdf5,
mpiSupport ? hdf5.mpiSupport,
mpi ? hdf5.mpi,
}:
assert mpiSupport -> mpi != null;
stdenv.mkDerivation (finalAttrs: {
pname = "highfive${lib.optionalString mpiSupport "-mpi"}";
version = "3.3.0";
src = fetchFromGitHub {
owner = "highfive-devs";
repo = "highfive";
tag = "v${finalAttrs.version}";
sha256 = "sha256-BuDvoQgMdZIDHYwXqigM78DQ+WtT+K0FdXERMUjmXc0=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [
hdf5
];
passthru = {
inherit mpiSupport mpi;
};
cmakeFlags = [
"-DHIGHFIVE_EXAMPLES=OFF"
"-DHIGHFIVE_UNIT_TESTS=OFF"
]
++ (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;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ robertodr ];
};
})
|