openmpi: put all common buildInputs in the same place

This commit is contained in:
Doron Behar
2024-08-06 19:54:58 +03:00
parent 51f5d82d75
commit 494efeb70a
@@ -59,7 +59,11 @@ stdenv.mkDerivation (finalAttrs: {
];
buildInputs =
[ zlib ]
[
zlib
libevent
hwloc
]
++ lib.optionals stdenv.isLinux [
libnl
numactl
@@ -68,10 +72,6 @@ stdenv.mkDerivation (finalAttrs: {
ucc
]
++ lib.optionals cudaSupport [ cudaPackages.cuda_cudart ]
++ [
libevent
hwloc
]
++ lib.optional (stdenv.isLinux || stdenv.isFreeBSD) rdma-core
++ lib.optionals fabricSupport [
libpsm2