Revenue will be split between the northern and southern governments , which signed a wealth-sharing agreement as part of the peace deal that ended Sudan 's north-south civil war last year .