Well more with potting soil than dirt. The author talks about a project, called printgreen, where you print out a soil/seed mixture for art like designs. The dirt contains grass seed, so its pretty neat. The machine looks like a standard CNC with a container like the pancake bot to “print” the seed/soil mixture. Not a whole lot of tech detail on the project. But if you can figure out the soil/seed/etc bit, should be an easy build.
https://www.yahoo.com/makers/3d-printer-prints-creative-gardens-c1223402814382134.html