Add the carrot and onion and cook, stirring occasionally, until tender and golden, about 10 minutes. Add the tomatoes and a pinch of salt and cook, stirring often, until the tomatoes are soft and the sauce has thickened, about 30 minutes. Let cool slightly.