netcdffortran: fix build on darwin
This commit is contained in:
parent
a85892edd7
commit
a14356187f
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, netcdf, hdf5, curl, gfortran }:
|
{ lib, stdenv, fetchFromGitHub, netcdf, hdf5, curl, gfortran, CoreFoundation }:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "netcdf-fortran";
|
pname = "netcdf-fortran";
|
||||||
version = "4.4.5";
|
version = "4.4.5";
|
||||||
@ -11,7 +11,8 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ gfortran ];
|
nativeBuildInputs = [ gfortran ];
|
||||||
buildInputs = [ netcdf hdf5 curl ];
|
buildInputs = [ netcdf hdf5 curl ]
|
||||||
|
++ lib.optional stdenv.isDarwin CoreFoundation;
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -7948,7 +7948,9 @@ with pkgs;
|
|||||||
|
|
||||||
netcdfcxx4 = callPackage ../development/libraries/netcdf-cxx4 { };
|
netcdfcxx4 = callPackage ../development/libraries/netcdf-cxx4 { };
|
||||||
|
|
||||||
netcdffortran = callPackage ../development/libraries/netcdf-fortran { };
|
netcdffortran = callPackage ../development/libraries/netcdf-fortran {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) CoreFoundation;
|
||||||
|
};
|
||||||
|
|
||||||
networking-ts-cxx = callPackage ../development/libraries/networking-ts-cxx { };
|
networking-ts-cxx = callPackage ../development/libraries/networking-ts-cxx { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user