Multiple CallPackage for one package

I have to combine these two CallPackage options in all-packages.nix to upgrade Mythtv to version 30.0:
mythtv = libsForQt5.callPackage …/applications/video/mythtv { };

mythtv = callPackage …/applications/video/mythtv { libXNVCtrl = linuxPackages.nvidia_x11.settings.libXNVCtrl; };

I have tried several combinations without any luck. Any ideas?

Related pull request: https://github.com/NixOS/nixpkgs/pull/71002

I responed in the PR