It seems there is a way to accomplish this now, by this comment added yesterday:
FYI this was just added to nixpkgs. You can do the following:
google-cloud-sdk.withExtraComponents ([google-cloud-sdk.components.cloud-build-local])
I tried applying it, but failed. I’m using home-manager on elementaryos, can someone help me understand how to apply this in this context? Thanks!