How to "merge" several derivation outputs for plugin system?

I think this is what symlinkJoin is used for.