<p>Diamondback Energy Inc. agreed to buy certain subsidiaries of closely held oil driller Double Eagle for about $5 billion in cash and stock, growing its position as one of the largest operators in the world’s most productive shale patch.</p>