Build the frontend and cores with Nix. The trick is to prefetch the Git submodules, write a Nix description listing each submodule, and transform that into a set of packages.