From cba2328ca411383627a5cb94ef9b44a9f8597a26 Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Sun, 5 Dec 2021 16:10:51 -0800 Subject: [PATCH] netcdffortran: fix build with gfortran 10 --- pkgs/development/libraries/netcdf-fortran/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/netcdf-fortran/default.nix b/pkgs/development/libraries/netcdf-fortran/default.nix index 40f22b0cabe..d64d631f94c 100644 --- a/pkgs/development/libraries/netcdf-fortran/default.nix +++ b/pkgs/development/libraries/netcdf-fortran/default.nix @@ -15,6 +15,9 @@ stdenv.mkDerivation rec { ++ lib.optional stdenv.isDarwin CoreFoundation; doCheck = true; + FFLAGS = [ "-std=legacy" ]; + FCFLAGS = [ "-std=legacy" ]; + meta = with lib; { description = "Fortran API to manipulate netcdf files"; homepage = "https://www.unidata.ucar.edu/software/netcdf/";