Skip to content

Commit c53018c

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
1 parent ca673d6 commit c53018c

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

pkgs/top-level/all-packages.nix

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

1527715277
mg = callPackage ../applications/editors/mg { };
1527815278

15279-
15280-
# Attributes for backward compatibility.
15279+
}
15280+
### Aliases to attributes converted to the dashed-style.
15281+
// lib.mapAttrs (name: builtins.trace
15282+
( "Warning: using a deprecated attribute '${name}'."
15283+
+ " CamelCase and under_scores are replaced by dashed-names"
15284+
+ " to match the nix-env names better."))
15285+
{ # warnings since 2015-09
1528115286
adobeReader = adobe-reader;
1528215287
arduino_core = arduino-core; # added 2015-02-04
1528315288
asciidocFull = asciidoc-full; # added 2014-06-22
@@ -15286,17 +15291,24 @@ let
1528615291
lttngTools = lttng-tools; # added 2014-07-31
1528715292
lttngUst = lttng-ust; # added 2014-07-31
1528815293
jquery_ui = jquery-ui; # added 2014-09-07
15289-
youtubeDL = youtube-dl; # added 2014-10-26
15290-
youtube-dl = pythonPackages.youtube-dl; # added 2015-06-07
1529115294
rdiff_backup = rdiff-backup; # added 2014-11-23
1529215295
htmlTidy = html-tidy; # added 2014-12-06
1529315296
libtidy = html-tidy; # added 2014-12-21
1529415297
speedtest_cli = speedtest-cli; # added 2015-02-17
1529515298
sqliteInteractive = sqlite-interactive; # added 2014-12-06
1529615299
nfsUtils = nfs-utils; # added 2014-12-06
1529715300
buildbotSlave = buildbot-slave; # added 2014-12-09
15298-
cool-old-term = cool-retro-term; # added 2015-01-31
1529915301
rssglx = rss-glx; #added 2015-03-25
15302+
15303+
}
15304+
### Other attribute aliases for backward compatibility.
15305+
// lib.mapAttrs
15306+
(name: builtins.trace "Warning: using a deprecated attribute '${name}'.")
15307+
{ # warnings since 2015-09
15308+
youtubeDL = youtube-dl; # added 2014-10-26
15309+
youtube-dl = pythonPackages.youtube-dl; # added 2015-06-07
15310+
cool-old-term = cool-retro-term; # added 2015-01-31
15311+
1530015312
haskell-ng = haskell; # 2015-04-19
1530115313
haskellngPackages = haskellPackages; # 2015-04-19
1530215314
inherit (haskell.compiler) jhc uhc; # 2015-05-15

0 commit comments

Comments
 (0)