3
0
Fork 0
forked from mirrors/nixpkgs

netcdf: added parallel i/o support

This commit is contained in:
Bruno Bzeznik Bruno.Bzeznik@imag.fr 2016-05-26 15:27:04 +02:00 committed by Frederik Rietdijk
parent a03ff26080
commit 0b3e1f8f7c
2 changed files with 23 additions and 9 deletions

View file

@ -1,22 +1,32 @@
{ stdenv, fetchurl,
zlib, hdf5, m4,
curl # for DAP
{ stdenv
, fetchurl
, zlib
, hdf5
, m4
, curl # for DAP
}:
stdenv.mkDerivation rec {
let
mpiSupport = hdf5.mpiSupport;
mpi = hdf5.mpi;
in stdenv.mkDerivation rec {
name = "netcdf-4.3.3.1";
src = fetchurl {
url = "http://www.unidata.ucar.edu/downloads/netcdf/ftp/${name}.tar.gz";
sha256 = "06ds8zm4qvjlqvv4qb637cqr0xgvbhnghrddisad5vj81s5kvpmx";
};
buildInputs = [
zlib hdf5 m4 curl
];
buildInputs = [ hdf5 zlib m4 curl mpi];
passthru = {
mpiSupport = mpiSupport;
inherit mpi;
};
configureFlags = [
"--enable-netcdf-4"
"--enable-dap"
"--enable-shared"
];
]
++ (stdenv.lib.optionals mpiSupport [ "--enable-parallel-tests" ]);
}

View file

@ -2549,6 +2549,10 @@ in
netcdf = callPackage ../development/libraries/netcdf { };
netcdf-mpi = appendToName "mpi" (netcdf.override {
hdf5 = hdf5-mpi;
});
netcdfcxx4 = callPackage ../development/libraries/netcdf-cxx4 { };
netcdffortran = callPackage ../development/libraries/netcdf-fortran { };