anchor.diff:    '';
   
     buildInputs = with stdenv; [ gfortran zlib ]
  -    ++ lib.optionals isLinux [ libnl numactl ]
  +    ++ lib.optionals isLinux [ libnl numactl pmix ]
       ++ lib.optionals cudaSupport [ cudatoolkit ]
       ++ [ libevent hwloc ]
       ++ lib.optional (isLinux || isFreeBSD) rdma-core
  
positive.code:   nativeBuildInputs = [ perl ];
  
    configureFlags = with stdenv; lib.optional (!cudaSupport) "--disable-mca-dso"
      ++ lib.optional isLinux  "--with-libnl=${libnl.dev}"
      ++ lib.optional enableSGE "--with-sge"
      ++ lib.optional enablePrefix "--enable-mpirun-prefix-by-default"
      # TODO: add UCX support, which is recommended to use with cuda for the most robust OpenMPI build
      # https://github.com/openucx/ucx
  
negative.code: { stdenv, fetchurl, fetchpatch, gfortran, perl, libnl
  , rdma-core, zlib, numactl, libevent, hwloc, targetPackages, symlinkJoin
  , libpsm2, libfabric, pmix
  
  # Enable CUDA support
  , cudaSupport ? false, cudatoolkit ? null
  