3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/netcdf-cxx4/default.nix

30 lines
733 B
Nix
Raw Normal View History

2021-11-01 15:05:47 +00:00
{ lib, stdenv, fetchFromGitHub, netcdf, hdf5, curl, cmake, ninja }:
2015-09-11 13:34:34 +01:00
stdenv.mkDerivation rec {
pname = "netcdf-cxx4";
version = "4.3.1";
2015-09-11 13:34:34 +01: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 13:34:34 +01:00
};
preConfigure = ''
cmakeFlags+="-Dabs_top_srcdir=$(readlink -f ./)"
'';
2019-10-18 18:33:16 +01:00
nativeBuildInputs = [ cmake ninja ];
2015-09-11 13:34:34 +01:00
buildInputs = [ netcdf hdf5 curl ];
2015-09-11 13:34:34 +01:00
doCheck = true;
enableParallelChecking = false;
2015-09-11 13:34:34 +01:00
meta = {
description = "C++ API to manipulate netcdf files";
homepage = "https://www.unidata.ucar.edu/software/netcdf/";
license = lib.licenses.free;
platforms = lib.platforms.unix;
2015-09-11 13:34:34 +01:00
};
}