Trivial builder that links all outputs?

is there some trivial builder akin to pkgs.symlinkJoin that creates and links outputs of all the relevant derivations?

For context I’m trying to write a nix wrapper and leveraging symlinkJoin to help me do that. It works fine except that it doesn’t propagate man pages correctly. It also doesn’t propagate developer documentation either, both things that I want.

I don’t want to just do paths = [ nix.man nix.devdoc ] for all my outputs because then they’ll link into one derivation structure and could potentially overlap/introduce weirdness. I was wondering if something for this situation already existed in nixpkgs

How to get postgres man pages in a devShell? - #2 by amiryal might be helpful