This appears to do it:
var coeff = 1000 * 60 * 5;
var nested_data = d3.nest()
.key(function(d) { return new Date(Math.round(d.date.getTime() / coeff) * coeff)})
.rollup(function(a) {return d3.sum(a, function(d) {return d.amount})})
.entries(data);