Rabat - Presidential elections in Nigeria have been won by former General Muhammadu Buhari.