netcdfcxx4: switch to CMake
This resolves the Darwin linking issues Once and For All. Also, this makes the build parallel, which is nice too.
This commit is contained in:
parent
dfe5071b82
commit
147a5cda72
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchzip, netcdf, hdf5, curl }:
|
{ lib, stdenv, fetchzip, netcdf, hdf5, curl, cmake, ninja }:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "netcdf-cxx4";
|
pname = "netcdf-cxx4";
|
||||||
version = "4.3.1";
|
version = "4.3.1";
|
||||||
|
@ -8,12 +8,15 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "05kydd5z9iil5iv4fp7l11cicda5n5lsg5sdmsmc55xpspnsg7hr";
|
sha256 = "05kydd5z9iil5iv4fp7l11cicda5n5lsg5sdmsmc55xpspnsg7hr";
|
||||||
};
|
};
|
||||||
|
|
||||||
configureFlags = stdenv.lib.optionals stdenv.isDarwin [
|
preConfigure = ''
|
||||||
"--without-nc-config"
|
cmakeFlags+="-Dabs_top_srcdir=$(readlink -f ./)"
|
||||||
]; # prevent linking failure on Darwin
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cmake ninja ];
|
||||||
buildInputs = [ netcdf hdf5 curl ];
|
buildInputs = [ netcdf hdf5 curl ];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
enableParallelChecking = false;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "C++ API to manipulate netcdf files";
|
description = "C++ API to manipulate netcdf files";
|
||||||
|
|
Loading…
Reference in a new issue