This or the tv series?
According to Wikipedia, the movie came first and was turned into a teleplay that would become the show.