forked from mirrors/nixpkgs
147a5cda72
This resolves the Darwin linking issues Once and For All. Also, this makes the build parallel, which is nice too.
28 lines
725 B
Nix
28 lines
725 B
Nix
{ lib, stdenv, fetchzip, netcdf, hdf5, curl, cmake, ninja }:
|
|
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";
|
|
};
|
|
|
|
preConfigure = ''
|
|
cmakeFlags+="-Dabs_top_srcdir=$(readlink -f ./)"
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake ninja ];
|
|
buildInputs = [ netcdf hdf5 curl ];
|
|
|
|
doCheck = true;
|
|
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;
|
|
};
|
|
}
|