Paul Giamatti will be playing 1980s-era private detective Hoke Moseley if the pilot he's shooting for FX gets ordered to series.

FX announced Wednesday that Giamatti would be starring in the pilot "Hoke," a "darkly comic drama" based on the detective novels of Charles Willeford.

The pilot, written and directed by Scott Frank, follows Moseley as he undergoes a midlife crisis and gets involved in a murder investigation. He might also be insane.

VIDEO: Summer 2013 TV preview

Comparing Willeford to Elmore Leonard, FX president of original programming Eric Schrier said, "Charles Willeford is one of the most deeply respected writers of crime fiction and he created a wholly original and colorful lead character in Detective Hoke Moseley."

Frank is definitely in his element with crime fiction, having received an Oscar nomination for his adaptation of Leonard's "Out of Sight," and acclaim for his adaptation of Leonard's "Get Shorty." He also made his directorial debut with the crime thriller "The Lookout."

"Hoke" will join two other drama pilots in production at FX, "The Strain," based on the book co-written by Guillermo del Toro, and "Tyrant," from the executive producers of "Homeland."

ALSO:

Fox serving up 'MasterChef' episode starring Paula Deen

Queen Latifah nabs Will Smith, John Travolta for her new talk show

Keith Olbermann returns to ESPN to talk sports and hate on the media