Canadian drugmaker Valeant Pharmaceuticals International Inc. has agreed to buy Salix Pharmaceuticals Ltd. for about $10 billion in cash.

The companies said Sunday that their boards of directors approved the transaction, which amounts to about $158 for each of Salix’s outstanding shares—just above the Raleigh, North Carolina-based Salix’s closing price of $157.85 per share on Friday.