Deprecation warnings should not be used in Nixpkgs because they spam innocent "nix-env -qa" users with (in this case) dozens of messages that they can't do anything about. This also reverts commit 2ca8833383.
2ca8833383
Apparently everyone just copied those variables, instead of creating a library constant for them. Some even removed the comment. -.-