Civ is based on Civilization the board game. They are collectible and I have a copy.
https://en.wikipedia.org/wiki/Civilization_(1980_board_game)
From that wiki page...
The creator of the computer game Civilization, Sid Meier, claims that he did not play the original board game before making his game, but was instead inspired by SimCity, Railroad Tycoon and Risk. The name of the computer game was later decided during its development. Meier and MicroProse obtained the rights to use the name from Avalon Hill.
That's why I amended my original claim. However, Sid
was inspired by Sim City
which was
directly influenced by The Cyberiad.
As I said, it would be nice to have a more direct line. For example, in an
episode of Star Gate Atlantis, Rodney and (dude's name forgotten) play a
Civ-like game that affects people on a planet their ship is orbiting. That is a
a definite homage to Civ IMO.
Another more direct link with Civ is the short 1988 Dutch/German video of a story
from The Cyberiad called "The Seventh Sally" or "How Trurl's Own Perfection Led to
No Good". (Dialogue is in English.)
It is very dated and not great quality, but it shows the little civilization and
the inhabitants roaming around doing things we see in Civ games. At about 4:30
into the vid Trurl explains how armies, marketplaces and other buildings emerge
from his "program", and how the people are grateful.
"A sprinkling of heroes, a pinch of prophets and seers, one Messiah, and one
Great Person."
All the words and phrases are there.

That's a much more direct connection, IMO.
What do you think?