diff options
author | Josef Kemetmueller <josef.kemetmueller@aon.at> | 2016-07-22 00:55:44 +0200 |
---|---|---|
committer | Josef Kemetmueller <josef.kemetmueller@aon.at> | 2016-07-23 11:29:20 +0200 |
commit | be3a42a294982ce58bed3c7b326c81bc7fb35547 (patch) | |
tree | 090f6eff90ea9974c25fd8b506bb67b886daf23e /pkgs/development/libraries/openmpi | |
parent | 03c141b00e8a4a0b2392c5d5e50f288f751851b2 (diff) | |
download | nixpkgs-be3a42a294982ce58bed3c7b326c81bc7fb35547.tar nixpkgs-be3a42a294982ce58bed3c7b326c81bc7fb35547.tar.gz nixpkgs-be3a42a294982ce58bed3c7b326c81bc7fb35547.tar.bz2 nixpkgs-be3a42a294982ce58bed3c7b326c81bc7fb35547.tar.lz nixpkgs-be3a42a294982ce58bed3c7b326c81bc7fb35547.tar.xz nixpkgs-be3a42a294982ce58bed3c7b326c81bc7fb35547.tar.zst nixpkgs-be3a42a294982ce58bed3c7b326c81bc7fb35547.zip |
openmpi: Remove libibverbs on unsupported platforms
The libibverbs package is only available on Linux and FreeBSD, but openmpi can be used without it on platforms that don't support it.
Diffstat (limited to 'pkgs/development/libraries/openmpi')
-rw-r--r-- | pkgs/development/libraries/openmpi/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/openmpi/default.nix b/pkgs/development/libraries/openmpi/default.nix index c1333ff6171..9a97eaaff09 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; }; } |