Files
nixpkgs/pkgs/by-name/co/conduit/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

69 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
openmpi,
# passthru
conduit,
python3Packages,
nix-update-script,
mpiSupport ? false,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "conduit";
version = "0.9.5";
src = fetchFromGitHub {
owner = "LLNL";
repo = "conduit";
tag = "v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-mX7/5C4wd70Kx1rQyo2BcZMwDRqvxo4fBdz3pq7PuvM=";
};
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; };
pythonModule = python3Packages.conduit;
pythonModuleWithMpi = python3Packages.conduit-mpi;
};
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;
};
})