Static overlay guide?

Is there an official guide to using pkgsStatic anywhere?

Specific question that’s prompting me to ask - if you have a package that typically uses a cmake argument to enable/disable static/shared libs, how are you supposed to set this up to work with pkgsStatic? Eg I have a zfp overlay.