I also did:
(netcdf.override { libxml2 = (libxml2.override { enableHttp = true; }); })
In gmt's build input, but that does not work