From c10f7050c56ddbfb500ef5a73367f810438a8416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Wed, 23 Sep 2015 11:51:08 +0200 Subject: [PATCH] all-packages: don't recurse into aliased sets So far nix-env -qP would prefer e.g. `xlibs.*` to `xorg.*`, so we just disallow recursing into aliased sets while keeping them available for explicit usage. Consequently, `xlibs` references should get killed on the next regeneration. --- pkgs/top-level/all-packages.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a79f417b382..dff3d73ce2c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15035,8 +15035,12 @@ let mg = callPackage ../applications/editors/mg { }; +}; # self_ = - # Attributes for backward compatibility. + + ### Deprecated aliases - for backward compatibility + +aliases = with self; rec { adobeReader = adobe-reader; arduino_core = arduino-core; # added 2015-02-04 asciidocFull = asciidoc-full; # added 2014-06-22 @@ -15069,5 +15073,12 @@ let xlibs = xorg; # added 2015-09 youtube-dl = pythonPackages.youtube-dl; # added 2015-06-07 youtubeDL = youtube-dl; # added 2014-10-26 +}; + +tweakAlias = _n: alias: with lib; + if !isDerivation alias && isAttrs alias then + removeAttrs alias ["recurseForDerivations"] + else alias; + +in lib.mapAttrs tweakAlias aliases // self; in pkgs -}; in self; in pkgs