for shifter cables, WD-40 is fine.
it's light enough not to attract a lot of dirt, yet displaces water.
for derailer pivot points, chain lube is fine.
the factory lube for campy cables uses, what seems like, white lithium grease and the factory lube for derailer pivot points uses that jelly like green stuff park tool sells.