The self-replication assumes also that there is enough energy stored in each planet (or coming from a Sun) to do the work... That is pretty much unlikely.
Over a long enough timescale, though… really, really slow solar trickle charge to a space-capacitor bank? A thousand years’ suns, culminating in a glorious orgy of smelting?