When trying to update my NixOS configuration, I get the error message: vte = throw "The ‘gnome.vte’ alias was removed on 2022-01-13. Please use ‘pkgs.vte’ directly."; # added 2019-02-08
I don’t use Gnome directly, only these applications:
gnome.eog
gnome.gedit
gnome3.adwaita-icon-theme
Nowhere in my config do I mention vte. I tried enabling a stack trace, but it doesn’t tell me much. The full trace is here.
From your trace, you can see which package triggered the evaluation of pkgs.gnome.vte on line 36:
… while evaluating the attribute 'buildInputs' of the derivation 'xfce4-terminal-0.8.10'
Looking at the expression of xfce4-terminal, we can see that it only asks for vte in the arguments, not gnome, so things are broken further up the chain when it gets callPackage'd:
Going up one level, we finally find our culprit in pkgs/desktops/xfce/default.nix, where Xfce packages are called in a new scope containing several aliases, one of which is the removed alias: