ABC is teaming up with Salma Hayek to develop a TV miniseries version of the popular Broadway musical Wicked.

According to Variety, Erik Jendresen is writing the script for the eight-hour miniseries.

Wicked is a retelling of The Wizard of Oz tale from the Wicked Witch's point of view.

The mini is based on the 1995 book "Wicked: The Life and Times of the Wicked Witch of the West" by Gregory Maguire, which recast the witch as a hero fighting for her homeland. The book was turned into the wildly popular musical "Wicked," which hit Broadway in 2003.

The ABC miniseries will be based on the book and not the musical.

Salma Hayek is so far attached solely as an exec producer; it's unclear whether she would take a role in the project.