mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
hdf5: Add mpi support
Optionally, build the parallel version of hdf5.
This commit is contained in:
parent
a1a9c26ccc
commit
8346343aa5
1 changed files with 13 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
, fetchurl
|
||||
, zlib ? null
|
||||
, szip ? null
|
||||
, mpi ? null
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.8.13";
|
||||
|
@ -12,11 +13,22 @@ 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 ""}
|
||||
";
|
||||
|
||||
patches = [./bin-mv.patch];
|
||||
|
||||
|
|
Loading…
Reference in a new issue