The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
As is common in Go, version information in the binary is set at compile time via LDFLAGS.