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
67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
autoconf,
|
|
automake,
|
|
mpi,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "hp2p";
|
|
version = "4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cea-hpc";
|
|
repo = "hp2p";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-KuDf1VhLQRDDY3NZaNaHDVGipLmB8+1K36/W1fKnno0=";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
nativeBuildInputs = [
|
|
autoconf
|
|
automake
|
|
python3Packages.wrapPython
|
|
];
|
|
buildInputs = [
|
|
mpi
|
|
]
|
|
++ (with python3Packages; [
|
|
python
|
|
plotly
|
|
]);
|
|
pythonPath = (with python3Packages; [ plotly ]);
|
|
|
|
preConfigure = ''
|
|
patchShebangs autogen.sh
|
|
./autogen.sh
|
|
export CC=mpicc
|
|
export CXX=mpic++
|
|
'';
|
|
|
|
postInstall = ''
|
|
wrapPythonPrograms
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
description = "MPI based benchmark for network diagnostics";
|
|
homepage = "https://github.com/cea-hpc/hp2p";
|
|
changelog = "https://github.com/cea-hpc/hp2p/releases/tag/${finalAttrs.version}";
|
|
platforms = lib.platforms.unix;
|
|
license = lib.licenses.cecill-c;
|
|
maintainers = [ lib.maintainers.bzizou ];
|
|
mainProgram = "hp2p.exe";
|
|
badPlatforms = [
|
|
# hp2p_algo_cpp.cpp:38:10: error: no member named 'random_shuffle' in namespace 'std'
|
|
lib.systems.inspect.patterns.isDarwin
|
|
];
|
|
};
|
|
})
|