Fabrini

Star Trek: The Original Series
Episode: TOS 065 - For the World Is Hollow and I Have Touched the Sky

Planet/Asteroid: Yonada. The Fabrini are an ancient humanoid race whose ancestors built a traveling "world" called Yonada to save their descendants before their sun went supernova.