This repo contains buildx-desktop releases.
Download the latest version of the binary matching your OS and architecture from the Releases page.
Move the binary to ~/.docker/cli-plugins/docker-buildx
Change its permissions chmod a+x ~/.docker/cli-plugins/docker-buildx