Nepal's former Supreme Court chief justice Sushila Karki is set to become the country's interim prime minister after deadly anti-corruption protests ousted the government.

Karki, 73, will be the first woman to lead the impoverished Himalayan nation after a deal was reached with the protest leaders for her to be sworn in.

More than 50 people were killed in clashes with riot police during this week's mass protests sparked by a ban on social media platforms.

The ban was lifted on Monday - but by then protests had swelled into a mass movement. Angry crowds set fire to parliament and government buildings in the capital Kathmandu on Tuesday, forcing Prime Minister KP Sharma Oli to resign.

Karki would take the oath of office on Friday evening, President Ram Chandra Poudel's press adviser confirmed to the BBC.