How can I rename a Go executable?

I’m trying to build a Go package using buildGoPackage, and the problem is that the executable needs to be called humioctl but the repo is called cli. You can see my current work here:

The solution I’ve settled on is simply renaming the executable during post-install:

postInstall = ''
  mv $out/bin/cli $out/bin/humioctl

This definitely “works” but feels very non-idiomatic. If one of you knows a better way, please let me know.

Everything else was painless, so kudos to the folks who devised buildGoPackage, vgo2nix, and buildGoModule!