diff --git a/pkgs/development/libraries/openmpi/default.nix b/pkgs/development/libraries/openmpi/default.nix index c1333ff61714..9a97eaaff090 100644 --- a/pkgs/development/libraries/openmpi/default.nix +++ b/pkgs/development/libraries/openmpi/default.nix @@ -26,7 +26,8 @@ in stdenv.mkDerivation rec { # https://www.open-mpi.org/community/lists/users/2015/11/28030.php patches = [ ./nbc_copy.patch ]; - buildInputs = [ gfortran libibverbs ]; + buildInputs = [ gfortran ] + ++ optional (stdenv.isLinux || stdenv.isFreeBSD) libibverbs; nativeBuildInputs = [ perl ]; @@ -46,5 +47,6 @@ in stdenv.mkDerivation rec { description = "Open source MPI-2 implementation"; longDescription = "The Open MPI Project is an open source MPI-2 implementation that is developed and maintained by a consortium of academic, research, and industry partners. Open MPI is therefore able to combine the expertise, technologies, and resources from all across the High Performance Computing community in order to build the best MPI library available. Open MPI offers advantages for system and software vendors, application developers and computer science researchers."; maintainers = [ stdenv.lib.maintainers.mornfall ]; + platforms = platforms.unix; }; }