I thought it was logical that fixupPhase should be run on every output... and the output was identified by $prefix for that case. I agree that reusing it for this purpose is a bit ugly, so I could rename it in the whole fixupPhase, as it only makes sense to run it on the outputs and not on $prefix in some temporary location.