1 { lib, stdenv, fetchFromGitHub, netcdf, hdf5, curl, cmake, ninja }:
2 stdenv.mkDerivation rec {
6 src = fetchFromGitHub {
10 sha256 = "sha256-GZ6n7dW3l8Kqrk2Xp2mxRTUWWQj0XEd2LDTG9EtrfhY=";
14 # This fix is included upstream, remove with next upgrade
19 cmakeFlags+="-Dabs_top_srcdir=$(readlink -f ./)"
22 nativeBuildInputs = [ cmake ninja ];
23 buildInputs = [ netcdf hdf5 curl ];
26 enableParallelChecking = false;
28 export HDF5_PLUGIN_PATH=${netcdf}/lib/hdf5-plugins
32 description = "C++ API to manipulate netcdf files";
33 homepage = "https://www.unidata.ucar.edu/software/netcdf/";
34 license = lib.licenses.free;
35 platforms = lib.platforms.unix;
36 broken = stdenv.isDarwin;