anchor.diff:    doCheck = !(mpiSupport || (stdenv.isDarwin && stdenv.isAarch64));
     checkInputs = [ unzip ];
   
  +  preCheck = ''
  +    export HOME=$TEMP
  +  '';
  +
     meta = {
  -      description = "Libraries for the Unidata network Common Data Format";
  -      platforms = lib.platforms.unix;
  -      homepage = "https://www.unidata.ucar.edu/software/netcdf/";
  -      license = {
  -        url = "https://www.unidata.ucar.edu/software/netcdf/docs/copyright.html";
  -      };
  +    description = "Libraries for the Unidata network Common Data Format";
  +    platforms = lib.platforms.unix;
  +    homepage = "https://www.unidata.ucar.edu/software/netcdf/";
  +    changelog = "https://docs.unidata.ucar.edu/netcdf-c/${version}/RELEASE_NOTES.html";
  +    license = lib.licenses.bsd3;
     };
   }
  
positive.code:   '';
  
    nativeBuildInputs = [ m4 removeReferencesTo ];
    buildInputs = [ hdf5 curl mpi ];
  
    passthru = {
      inherit mpiSupport mpi;
  
negative.code:   inherit (hdf5) mpiSupport mpi;
  in stdenv.mkDerivation rec {
    pname = "netcdf" + lib.optionalString mpiSupport "-mpi";
    version = "4.9.0";
  
    src = fetchurl {
      url = "https://downloads.unidata.ucar.edu/netcdf-c/${version}/netcdf-c-${version}.tar.gz";
      hash = "sha256-TJVgIrecCOXhTu6N9RsTwo5hIcK35/qtwhs3WUlAC0k=";
    };
  
    postPatch = ''
  