How to add "optional" dependencies on a nixpkgs

I’ve added a nix derivation to nixpkgs which is a file previewer for the terminal called ctpv. Though, this program has some optional dependencies to use as previewers and I would like to give the choice to the user to choose what they want, currently the package has no option to do this.

The question is, can I at least split the packages in two versions? One that comes without dependencies (so the user can install whatever they want to use) and other that is “Full”, how can I do this? I’ve tried to find answers in other places but I’ve had no success.

Here’s an example: