In NixOS we use go mod vendor to vendor go dependencies. However any package that depends on the go-tpm-tools simulator currently can't be packaged. this is because go mod vendor deletes the ms-tpm-20-ref subfolder as it contains no go files and the go files aren't referenced.
golang/go#26366