Merge pull request #3316 from aherrmann/pr_mpi

MPI support for HDF5 and SGE support for OpenMPI
This commit is contained in:
Michael Raskin
2014-08-29 01:22:02 +04:00
6 changed files with 142 additions and 2 deletions

View File

@@ -3,6 +3,8 @@
, fetchurl
, zlib ? null
, szip ? null
, mpi ? null
, enableShared ? true
}:
stdenv.mkDerivation rec {
version = "1.8.13";
@@ -12,11 +14,23 @@ stdenv.mkDerivation rec {
sha256 = "1h9qdl321gzm3ihdhlijbl9sh9qcdrw94j7izg64yfqhxj7b7xl2";
};
passthru = {
mpiSupport = (mpi != null);
inherit mpi;
};
buildInputs = []
++ stdenv.lib.optional (zlib != null) zlib
++ stdenv.lib.optional (szip != null) szip;
configureFlags = if szip != null then "--with-szlib=${szip}" else "";
propagatedBuildInputs = []
++ stdenv.lib.optional (mpi != null) mpi;
configureFlags = "
${if szip != null then "--with-szlib=${szip}" else ""}
${if mpi != null then "--enable-parallel" else ""}
${if enableShared then "--enable-shared" else ""}
";
patches = [./bin-mv.patch];