Nix is one of those few things where it's actually better to use the version that is on the host. This avoids having to deal with Nix compatibility issues, and download a second version of Nix on hosts like GitHub Actions.
The buildGoModule infrastructure does not make use of goPackagePath it is a residue from buildGoPackage.