conduit: init at 0.9.3 (#390967)

This commit is contained in:
Sandro
2025-03-18 20:40:17 +01:00
committed by GitHub
+65
View File
@@ -0,0 +1,65 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
openmpi,
# passthru
conduit,
nix-update-script,
mpiSupport ? false,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "conduit";
version = "0.9.3";
src = fetchFromGitHub {
owner = "LLNL";
repo = "conduit";
tag = "v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-R7DiMwaMG9VfqDJiO3kFPb76j6P2GZl/6qLxDfVex8A=";
};
nativeBuildInputs = [
cmake
];
cmakeDir = "../src";
buildInputs = lib.optionals mpiSupport [
openmpi
];
cmakeFlags = [
(lib.cmakeBool "ENABLE_MPI" mpiSupport)
];
installCheckPhase = ''
runHook preInstallCheck
make test
runHook postInstallCheck
'';
doInstallCheck = true;
passthru = {
tests = {
withMpi = conduit.override { mpiSupport = true; };
};
updateScript = nix-update-script { };
};
meta = {
description = "Simplified Data Exchange for HPC Simulations";
homepage = "https://github.com/LLNL/conduit";
changelog = "https://github.com/LLNL/conduit/blob/v${finalAttrs.version}/CHANGELOG.md";
license = lib.licenses.bsd3Lbnl;
maintainers = with lib.maintainers; [ GaetanLepage ];
platforms = lib.platforms.all;
};
})