anchor.diff:  
     doCheck = true;
   
  +  passthru = {
  +    inherit cudaSupport cudatoolkit;
  +  };
  +
     meta = with stdenv.lib; {
       homepage = https://www.open-mpi.org/;
       description = "Open source MPI-3 implementation";
  
positive.code: 
    buildInputs = with stdenv; [ gfortran zlib ]
      ++ lib.optionals isLinux [ libnl numactl ]
      ++ [ libevent hwloc ]
      ++ lib.optional (isLinux || isFreeBSD) rdma-core;
  
    nativeBuildInputs = [ perl ];
  
    configureFlags = with stdenv; [ "--disable-mca-dso" ]
      ++ lib.optional isLinux  "--with-libnl=${libnl.dev}"
      ++ lib.optional enableSGE "--with-sge"
      ++ lib.optional enablePrefix "--enable-mpirun-prefix-by-default"
      ;
  
    enableParallelBuilding = true;
  
negative.code: { stdenv, fetchurl, fetchpatch, gfortran, perl, libnl
  , rdma-core, zlib, numactl, libevent, hwloc, pkgsTargetTarget, symlinkJoin
  
  # Enable CUDA support
  , cudaSupport ? false, cudatoolkit ? null
  
  # Enable the Sun Grid Engine bindings
  , enableSGE ? false
  