parent
d475361ba7
commit
2ea7b81750
@ -9,11 +9,12 @@ let
|
|||||||
mpiSupport = hdf5.mpiSupport;
|
mpiSupport = hdf5.mpiSupport;
|
||||||
mpi = hdf5.mpi;
|
mpi = hdf5.mpi;
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
name = "netcdf-4.6.1";
|
pname = "netcdf";
|
||||||
|
version = "4.7.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.unidata.ucar.edu/downloads/netcdf/ftp/${name}.tar.gz";
|
url = "https://www.unidata.ucar.edu/downloads/netcdf/ftp/${pname}-c-${version}.tar.gz";
|
||||||
sha256 = "0hi61cdihwwvz5jz1l7yq712j7ca1cj4bhr8x0x7c2vlb1s9biw9";
|
sha256 = "12s4w2s96p51hlsa81lw92w56rdx8i3mk21pz2ydwcamw579z34f";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -37,9 +38,12 @@ in stdenv.mkDerivation rec {
|
|||||||
"--enable-netcdf-4"
|
"--enable-netcdf-4"
|
||||||
"--enable-dap"
|
"--enable-dap"
|
||||||
"--enable-shared"
|
"--enable-shared"
|
||||||
|
"--disable-dap-remote-tests"
|
||||||
]
|
]
|
||||||
++ (stdenv.lib.optionals mpiSupport [ "--enable-parallel-tests" "CC=${mpi}/bin/mpicc" ]);
|
++ (stdenv.lib.optionals mpiSupport [ "--enable-parallel-tests" "CC=${mpi}/bin/mpicc" ]);
|
||||||
|
|
||||||
|
doCheck = !mpiSupport;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Libraries for the Unidata network Common Data Format";
|
description = "Libraries for the Unidata network Common Data Format";
|
||||||
platforms = stdenv.lib.platforms.unix;
|
platforms = stdenv.lib.platforms.unix;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user