We have done more or less that: https://please.build / https://github.com/thought-machine/please
It's written in Go so doesn't need any external dependencies unless you want to target that language (i.e. it only needs a JDK if you're trying to build Java).
Disclaimer: I'm the main author.
Re:Bazel can now build Haskell
by numbsafari on Wednesday February 28, 2018 @01:43PM
(#16485491)
Wow. Looks good! Thanks for the heads up.
So far, I've avoided having to incorporate the JDK into my stack. Having to bring it in just for a build tool, keeping it up-to-date on developer configurations, just feels like a royal pain.
I realize it's never gonna happen, but having bazel rewritten in Go or C++ or anything else that produces a single binary would be awesome.