Nigeria 's former military rulers failed to diversify the economy away from its overdependence on the capital-intensive oil sector , which provides 95 % of foreign exchange earnings and about 80 % of budgetary revenues .