How much use have the chainring, chain and cassette seen? Because if they're clapped out anyway it might be worth just doing a clean install of the lot for compatibility. But as a general rule, it's usually just shifter and derailleur need to brand match, and the chains/chainrings/cassettes can...