Customizing the Rigify meta-rig, Constraints & Custom Drivers, what's the solution?
You can't, at least not easily. The only rig type that preserves constraints after generation is the Raw Copy. And that one is pretty advanced and I am not sure what the correct usage for it is.
The only thing that would work without serious coding knowledge is to finalize your meta rig and add your constraints on the generated rig.