Solar stills work by putting something that can be as simple as a sheet of clear plastic over a hole in the ground, and putting a bowl under the peak of the sheet. A greenhouse with a brackish pool and a way to collect the precipitation would be a scaled up version.
https://www.sciencedirect.com/topics/engineering/solar-still