blob: 4c9d294b784e81407ae2c418e65fd7bd86c35281 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{ lib, stdenv, fetchzip, netcdf, hdf5, curl }:
stdenv.mkDerivation rec {
pname = "netcdf-cxx4";
version = "4.3.1";
src = fetchzip {
url = "https://github.com/Unidata/netcdf-cxx4/archive/v${version}.tar.gz";
sha256 = "05kydd5z9iil5iv4fp7l11cicda5n5lsg5sdmsmc55xpspnsg7hr";
};
configureFlags = stdenv.lib.optionals stdenv.isDarwin [
"--without-nc-config"
]; # prevent linking failure on Darwin
buildInputs = [ netcdf hdf5 curl ];
doCheck = true;
meta = {
description = "C++ API to manipulate netcdf files";
homepage = "https://www.unidata.ucar.edu/software/netcdf/";
license = lib.licenses.free;
platforms = lib.platforms.unix;
};
}
|