Skip to content

Commit 8e8e23d

Browse files
committed
all-packages: warn when using deprecated attributes
The aliases are split into two groups, as mass-renaming is anticipated. Also added fold markers as in the rest of file. #9456 (cherry picked from commit c53018c)
1 parent 6300b47 commit 8e8e23d

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

pkgs/top-level/all-packages.nix

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15255,8 +15255,13 @@ let
1525515255

1525615256
mg = callPackage ../applications/editors/mg { };
1525715257

15258-
15259-
# Attributes for backward compatibility.
15258+
}
15259+
### Aliases to attributes converted to the dashed-style.
15260+
// lib.mapAttrs (name: builtins.trace
15261+
( "Warning: using a deprecated attribute '${name}'."
15262+
+ " CamelCase and under_scores are replaced by dashed-names"
15263+
+ " to match the nix-env names better."))
15264+
{ # warnings since 2015-09
1526015265
adobeReader = adobe-reader;
1526115266
arduino_core = arduino-core; # added 2015-02-04
1526215267
asciidocFull = asciidoc-full; # added 2014-06-22
@@ -15265,17 +15270,24 @@ let
1526515270
lttngTools = lttng-tools; # added 2014-07-31
1526615271
lttngUst = lttng-ust; # added 2014-07-31
1526715272
jquery_ui = jquery-ui; # added 2014-09-07
15268-
youtubeDL = youtube-dl; # added 2014-10-26
15269-
youtube-dl = pythonPackages.youtube-dl; # added 2015-06-07
1527015273
rdiff_backup = rdiff-backup; # added 2014-11-23
1527115274
htmlTidy = html-tidy; # added 2014-12-06
1527215275
libtidy = html-tidy; # added 2014-12-21
1527315276
speedtest_cli = speedtest-cli; # added 2015-02-17
1527415277
sqliteInteractive = sqlite-interactive; # added 2014-12-06
1527515278
nfsUtils = nfs-utils; # added 2014-12-06
1527615279
buildbotSlave = buildbot-slave; # added 2014-12-09
15277-
cool-old-term = cool-retro-term; # added 2015-01-31
1527815280
rssglx = rss-glx; #added 2015-03-25
15281+
15282+
}
15283+
### Other attribute aliases for backward compatibility.
15284+
// lib.mapAttrs
15285+
(name: builtins.trace "Warning: using a deprecated attribute '${name}'.")
15286+
{ # warnings since 2015-09
15287+
youtubeDL = youtube-dl; # added 2014-10-26
15288+
youtube-dl = pythonPackages.youtube-dl; # added 2015-06-07
15289+
cool-old-term = cool-retro-term; # added 2015-01-31
15290+
1527915291
haskell-ng = haskell; # 2015-04-19
1528015292
haskellngPackages = haskellPackages; # 2015-04-19
1528115293
inherit (haskell.compiler) jhc uhc; # 2015-05-15

0 commit comments

Comments
 (0)