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: MythTV 29.1 -> 30.0 by LouisDK1 · Pull Request #71002 · NixOS/nixpkgs · GitHub

I responed in the PR