@@ -161,7 +161,9 @@ lib.makeScope pkgs.newScope (self: with self; {
161161
162162 wingpanel-indicator-notifications = callPackage ./desktop/wingpanel-indicators/notifications { };
163163
164− wingpanel-indicator-power = callPackage ./desktop/wingpanel-indicators/power { };
164+ wingpanel-indicator-power = callPackage ./desktop/wingpanel-indicators/power {
165+ inherit (gnome) gnome-power-manager;
166+ };
165167
166168 wingpanel-indicator-session = callPackage ./desktop/wingpanel-indicators/session { };
167169
@@ -232,18 +234,20 @@ lib.makeScope pkgs.newScope (self: with self; {
232234 # Please call these packages in pkgs/top-level/all-packages.nix instead of this file.
233235 # https://github.com/NixOS/nixpkgs/issues/115222#issuecomment-906868654
234236
235−} // lib.optionalAttrs (config.allowAliases or true) {
237+}) // lib.optionalAttrs (config.allowAliases or true) {
236238
237239 ### ALIASES
238240
239− inherit (pkgs) vala; # added 2019-10-10
241+ # They need to be outside the scope or they will shadow the attributes from parent scope.
242+
243+ vala = throw "The ‘pantheon.vala’ alias was removed on 2022-02-02, please use ‘pkgs.vala’ directly."; # added 2019-10-10
240244
241− cerbere = throw "Cerbere is now obsolete https://github.com/elementary/cerbere/releases/tag/2.5.1.";
245+ cerbere = throw "Cerbere is now obsolete https://github.com/elementary/cerbere/releases/tag/2.5.1."; # added 2020-04-06
242246
243− elementary-screenshot-tool = elementary-screenshot; # added 2021-07-21
247+ elementary-screenshot-tool = throw "The ‘pantheon.elementary-screenshot-tool’ alias was removed on 2022-02-02, please use ‘pantheon.elementary-screenshot’ directly."; # added 2021-07-21
244248
245249 extra-elementary-contracts = throw "extra-elementary-contracts has been removed as all contracts have been upstreamed."; # added 2021-12-01
246250
247− inherit (pkgs) notes-up; # added 2021-12-18
251+ notes-up = throw "The ‘pantheon.notes-up’ alias was removed on 2022-02-02, please use ‘pkgs.notes-up’ directly."; # added 2021-12-18
248252
249−})
253+}