MacPorts' Portfile[1], maybe? Portfile is being evaluated entirely within interp[2] with only few functions exposed inside the environment
[1]: https://github.com/macports/macports-ports/blob/master/lang/...
[1]: https://github.com/macports/macports-ports/blob/master/lang/...