diff --git a/pkgs/development/libraries/netcdf-cxx4/default.nix b/pkgs/development/libraries/netcdf-cxx4/default.nix index 82d0e8c132d0..5f0fade2566e 100644 --- a/pkgs/development/libraries/netcdf-cxx4/default.nix +++ b/pkgs/development/libraries/netcdf-cxx4/default.nix @@ -17,10 +17,11 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ninja ]; buildInputs = [ netcdf hdf5 curl ]; - # 10 - cxx4_test_filter (Failed) - # Setting Filter....Caught unexpected exception. - doCheck = false; + doCheck = true; enableParallelChecking = false; + preCheck = '' + export HDF5_PLUGIN_PATH=${netcdf}/lib/hdf5-plugins + ''; meta = { description = "C++ API to manipulate netcdf files"; diff --git a/pkgs/development/libraries/netcdf/default.nix b/pkgs/development/libraries/netcdf/default.nix index 188dd586797b..ed869275c9d2 100644 --- a/pkgs/development/libraries/netcdf/default.nix +++ b/pkgs/development/libraries/netcdf/default.nix @@ -1,6 +1,11 @@ { lib, stdenv , fetchurl, unzip , hdf5 +, bzip2 +, libzip +, zstd +, szipSupport ? false +, szip , libxml2 , m4 , curl # for DAP @@ -34,7 +39,10 @@ in stdenv.mkDerivation rec { hdf5 libxml2 mpi - ]; + bzip2 + libzip + zstd + ] ++ lib.optional szipSupport szip; passthru = { inherit mpiSupport mpi; @@ -45,9 +53,12 @@ in stdenv.mkDerivation rec { "--enable-dap" "--enable-shared" "--disable-dap-remote-tests" + "--with-plugin-dir=${placeholder "out"}/lib/hdf5-plugins" ] ++ (lib.optionals mpiSupport [ "--enable-parallel-tests" "CC=${mpi}/bin/mpicc" ]); + enableParallelBuilding = true; + disallowedReferences = [ stdenv.cc ]; postFixup = ''