How to properly override qt5 and add a module

Hi folks,

My goal is to build qgis with qt3d support, since this is required by a plugin I need to use (

I’ve actually got this working at the moment, by overriding cmakeFlags in the qgis (via an overlay), and by adding qt3d to the qt5.15 derivation.

However, I’d like to do this in some way that doesn’t require maintaining my own version of the qgis derivation like this, and am wondering if anybody has any thoughts on how to accomplish this. My first thought was to add qt3d via an overlay instead, but looking at the derivation, it felt like this wasn’t going to be as simple as just overriding a single attr.