Installing package in Nix with nix-env -i <pkg> and adding Nix environment with source ~/.nix-profile/etc/profile.d/nix.sh causes that package to appear on top of the $PATH which is usually desirable.
What if I want to install and specify a runtime dependency (e.g. python or perl interpreter) for already existing package but don't want the dependency to appear for the rest of packages and system environment?
In my case I want to add perl dependency to fzf package as it uses perl here. But I don't want it to be present for the rest of the system for compatibility reasons.
I tried overriding fzf with packageOverrides but first it seems to work only for build dependencies and second there is no argument to specify perl.