I use a razor or X-Acto blade to retain the detent. Insert the spring and detent, depress with the blade, and slide in the pivot pin. The blade is thin enough that the pivot pin can be inserted into the receiver freely.
As a precaution, and regardless of the method you use, you can assemble...