openmpi: 1.6.5 -> 1.10.1

This commit is contained in:
Nikolay Amiantov 2015-12-29 02:24:51 +03:00
parent c2b70e6147
commit fea89d6bc3

View File

@ -1,25 +1,44 @@
{stdenv, fetchurl, gfortran {stdenv, fetchurl, gfortran, perl
# Enable the Sun Grid Engine bindings # Enable the Sun Grid Engine bindings
, enableSGE ? false , enableSGE ? false
# Pass PATH/LD_LIBRARY_PATH to point to current mpirun by default # Pass PATH/LD_LIBRARY_PATH to point to current mpirun by default
, enablePrefix ? false , enablePrefix ? false
# Build static libraries
, enableStatic ? false
}: }:
with stdenv.lib; with stdenv.lib;
stdenv.mkDerivation { let
name = "openmpi-1.6.5"; majorVersion = "1.10";
in stdenv.mkDerivation rec {
name = "openmpi-${majorVersion}.1";
src = fetchurl { src = fetchurl {
url = http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.5.tar.bz2 ; url = "http://www.open-mpi.org/software/ompi/v${majorVersion}/downloads/${name}.tar.bz2";
sha256 = "11gws4d3z7934zna2r7m1f80iay2ha17kp42mkh39wjykfwbldzy"; sha256 = "14p4px9a3qzjc22lnl6braxrcrmd9rgmy7fh4qpanawn2pgfq6br";
}; };
buildInputs = [ gfortran ]; buildInputs = [ gfortran ];
nativeBuildInputs = [ perl ];
configureFlags = [] configureFlags = []
++ optional enableSGE "--with-sge" ++ optional enableSGE "--with-sge"
++ optional enablePrefix "--enable-mpirun-prefix-by-default" ++ optional enablePrefix "--enable-mpirun-prefix-by-default"
++ optional enableStatic "--enable-static"
; ;
enableParallelBuilding = true;
preBuild = ''
patchShebangs ompi/mpi/fortran/base/gen-mpi-sizeof.pl
'';
meta = { meta = {
homepage = http://www.open-mpi.org/; homepage = http://www.open-mpi.org/;
description = "Open source MPI-2 implementation"; description = "Open source MPI-2 implementation";