Meanwhile , India 's nuclear-armed rival Pakistan is trumpeting its closer ties with China , with China agreeing to help Pakistan develop its civil nuclear power generation capacity as well as investing in a mega-dam and hydro-electricity project .