This is not ideal because with never version of Qt6 the qtmqtt package here is going to break due to mismatch hash. Another option would be to fail do to mismatch version (which is way more harder to debug). There is just no way to implement it in such a way it is going to work correctly.
Without qtmqtt cmake fails on missing pkg-config file and thus we have to include it. The best solution is to include it in nixpkgs but for some reason it is not tracked on qt mirrors and thus I am not sure if it is going to be accepted by nixpkgs upstream.
This is not ideal because with never version of Qt6 the
qtmqtt
package here is going to break due to mismatch hash. Another option would be to fail do to mismatch version (which is way more harder to debug). There is just no way to implement it in such a way it is going to work correctly.Without qtmqtt cmake fails on missing pkg-config file and thus we have to include it. The best solution is to include it in nixpkgs but for some reason it is not tracked on qt mirrors and thus I am not sure if it is going to be accepted by nixpkgs upstream.