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: https://github.com/lucperkins/nixpkgs/blob/1069af4eca48bdb68bb603c59158f9160d8f8a38/pkgs/applications/logging/humioctl/default.nix.

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!