Refactor the radicle-desktop build function in the flake by splitting it into an external file. Use file-based scoping to prevent access to global symbols within the build function.