srcOnly applies patches, but the resulting derivation still had the patches attribute, causing patchPhase to apply them again. Clear patches after srcOnly to prevent double-application.