nixpkgs/pkgs/development/libraries/netcdf-cxx4/default.nix

28 lines
725 B
Nix
Raw Normal View History

{ lib, stdenv, fetchzip, 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
src = fetchzip {
2015-09-11 13:34:34 +01:00
url = "https://github.com/Unidata/netcdf-cxx4/archive/v${version}.tar.gz";
sha256 = "05kydd5z9iil5iv4fp7l11cicda5n5lsg5sdmsmc55xpspnsg7hr";
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
};
}