2021-11-01 15:05:47 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, netcdf, hdf5, curl, cmake, ninja }:
|
2015-09-11 12:34:34 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "netcdf-cxx4";
|
2019-09-27 20:02:14 +00:00
|
|
|
version = "4.3.1";
|
2015-09-11 12:34:34 +00:00
|
|
|
|
2021-11-01 15:05:47 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Unidata";
|
|
|
|
repo = "netcdf-cxx4";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-GZ6n7dW3l8Kqrk2Xp2mxRTUWWQj0XEd2LDTG9EtrfhY=";
|
2015-09-11 12:34:34 +00:00
|
|
|
};
|
|
|
|
|
2021-05-01 23:46:35 +00:00
|
|
|
preConfigure = ''
|
|
|
|
cmakeFlags+="-Dabs_top_srcdir=$(readlink -f ./)"
|
|
|
|
'';
|
2019-10-18 17:33:16 +00:00
|
|
|
|
2021-05-01 23:46:35 +00:00
|
|
|
nativeBuildInputs = [ cmake ninja ];
|
2015-09-11 12:34:34 +00:00
|
|
|
buildInputs = [ netcdf hdf5 curl ];
|
2021-05-01 23:46:35 +00:00
|
|
|
|
2023-02-27 20:34:19 +00:00
|
|
|
doCheck = true;
|
2021-05-01 23:46:35 +00:00
|
|
|
enableParallelChecking = false;
|
2023-02-27 20:32:04 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HDF5_PLUGIN_PATH=${netcdf}/lib/hdf5-plugins
|
|
|
|
'';
|
2015-09-11 12:34:34 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "C++ API to manipulate netcdf files";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.unidata.ucar.edu/software/netcdf/";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.free;
|
|
|
|
platforms = lib.platforms.unix;
|
2015-09-11 12:34:34 +00:00
|
|
|
};
|
|
|
|
}
|