1 { lib, stdenv, fetchFromGitHub, netcdf, hdf5, curl, gfortran, CoreFoundation }:
2 stdenv.mkDerivation rec {
3 pname = "netcdf-fortran";
6 src = fetchFromGitHub {
8 repo = "netcdf-fortran";
10 sha256 = "sha256-nC93NcA4VJbrqaLwyhjP10j/t6rQSYcAzKBxclpZVe0=";
13 nativeBuildInputs = [ gfortran ];
14 buildInputs = [ netcdf hdf5 curl ]
15 ++ lib.optional stdenv.isDarwin CoreFoundation;
18 FFLAGS = [ "-std=legacy" ];
19 FCFLAGS = [ "-std=legacy" ];
22 description = "Fortran API to manipulate netcdf files";
23 homepage = "https://www.unidata.ucar.edu/software/netcdf/";
24 license = licenses.free;
25 maintainers = [ maintainers.bzizou ];
26 platforms = platforms.unix;