Here’s an interesting story on how the soil doesn’t influence wine. However no Geologist is named so, who knows how accurate this is. The interesting part is that they claim concentration of minerals in wine is below taste threshold.
However different mineral concentrations usually mean different growth patterns for plants. In the case of grapes this effects how the fruit develop and therefore the flavour.