mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
32 lines
820 B
Nix
32 lines
820 B
Nix
{ lib, stdenv, fetchFromGitHub, netcdf, hdf5, curl, cmake, ninja }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "netcdf-cxx4";
|
|
version = "4.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Unidata";
|
|
repo = "netcdf-cxx4";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-GZ6n7dW3l8Kqrk2Xp2mxRTUWWQj0XEd2LDTG9EtrfhY=";
|
|
};
|
|
|
|
preConfigure = ''
|
|
cmakeFlags+="-Dabs_top_srcdir=$(readlink -f ./)"
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake ninja ];
|
|
buildInputs = [ netcdf hdf5 curl ];
|
|
|
|
# 10 - cxx4_test_filter (Failed)
|
|
# Setting Filter....Caught unexpected exception.
|
|
doCheck = false;
|
|
enableParallelChecking = false;
|
|
|
|
meta = {
|
|
description = "C++ API to manipulate netcdf files";
|
|
homepage = "https://www.unidata.ucar.edu/software/netcdf/";
|
|
license = lib.licenses.free;
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|