The drama, based on the best-seller of the same name, is in development at the network with the 'Hamilton' favorite set to compose music for the project.

After a multiple-network bidding war, Showtime has landed Lin-Manuel Miranda's The Kingkiller Chronicle drama.

The project, which is in development at the premium cable network, will feature music composed by the Tony, Pulitzer, Grammy and Emmy winner.

Based on the best-selling series of novels by Pat Rothfuss, The Kingkiller Chronicle depicts the life and times of Kvothe, a magically gifted young man and famous musician who grows to be the most notorious wizard his world has ever seen. The potential series will follow a pair of wandering performers on their adventures through the unique and startling world of Temerant, immersing audiences in a universe of unexpected heroes, mystical places and terrifying dark forces.

Leverage creator John Rogers is writing the pilot and will serve as showrunner on the project. Kingkiller Chronicle is being produced by Lionsgate Television and counts Rogers, Miranda, Rothfuss, Robert Lawrence (Clueless, Die Hard With a Vengeance) and Jennifer Court (The Player) as executive producers.

"Showtime has always championed bold storytelling,” Miranda said Thursday in a statement. “Pat Rothruss' Kingkiller series is some of the most exciting storytelling I have ever read. I could not be more thrilled to help bring the sights and sounds of his wondrous world of Temerant to the screen.”

The book has sold more than 10 million copies in 35 languages across the globe. The TV project is an origin story that is set a generation before the events of the trilogy's first novel, The Name of the Wind.

“The Kingkiller Chronicle moves Showtime into a new genre in a powerful and unique way, led by the talented Lin-Manuel Miranda and John Rogers,” said Gary Levine, president of programming at Showtime. “We can’t wait for this talented team to harness the magic of Kingkiller to transport us all into an awesome new world.”

Should Kingkiller move forward at Showtime, it would become the premium cabler's latest genre play following Penny Dreadful, Dexter and Twin Peaks. The project attracted interest from multiple cable networks and landed at Showtime following a bidding war with Starz. Genre dramas, especially those based on well-known IP, have become increasingly in high demand following the global success of HBO's Game of Thrones.

“The Kingkiller Chronicle is one of the most coveted properties in the world, and we’re thrilled to partner with a brilliant creator in Pat Rothfuss, a creative genius in Lin-Manuel Miranda and a renowned showrunner in John Rogers,” said Lionsgate Television Group chairman Kevin Beggs. “With Showtime as our network partner, we continue to assemble a world-class team for our Kingkiller franchise.”

Lionsgate, meanwhile, is looking to build a larger world with the property that includes a feature film, interactive games and more.

Kingkiller Chronicle marks the latest high-profile project to land at Showtime. The CBS Corp.-owned premium cable network went straight to series on The President Is Missing, a drama produced by former President Bill Clinton and based on his book with James Patterson; and Kidding, a comedy starring Jim Carrey. They join a slate that includes Homeland, Shameless, Billions, The Affair, the recently renewed Ray Donovan and I'm Dying Up Here, as well as the upcoming White Famous, SMILF, The Chi, Patrick Melrose and Escape at Dannemora.

For Lionsgate, Kingkiller Chronicle is the studio's latest collaboration with Showtime following White Famous. The company's slate also includes Orange Is the New Black, White Famous, The Royals and Nashville.