From 3330fd35d04f892515b6e46ae69984b5e8e4b5bb Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 6 Apr 2026 19:28:39 +0300 Subject: [PATCH] openmpi: explain why pmix is not found with pkg-config --- pkgs/by-name/op/openmpi/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/op/openmpi/package.nix b/pkgs/by-name/op/openmpi/package.nix index 67a0d62ef13b..287fc4667dad 100644 --- a/pkgs/by-name/op/openmpi/package.nix +++ b/pkgs/by-name/op/openmpi/package.nix @@ -114,6 +114,8 @@ stdenv.mkDerivation (finalAttrs: { (lib.enableFeature cudaSupport "mca-dso") (lib.enableFeature fortranSupport "mpi-fortran") (lib.withFeatureAs stdenv.hostPlatform.isLinux "libnl" (lib.getDev libnl)) + # From some reason, without this the darwin build fails with cyclic + # references between $dev and $out "--with-pmix=${lib.getDev pmix}" "--with-pmix-libdir=${lib.getLib pmix}/lib" # Puts a "default OMPI_PRTERUN" value to mpirun / mpiexec executables