To my surprise, this was actually really easy to do! I'm sure there are lots of errors, but this works quite well right now!
Gonix are Golang bindings for Nix