git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commitc10f7050c56ddbfb500ef5a73367f810438a8416 authorVladimír Čunát <vcunat@gmail.com> dateWed 23 Sep 2015, 11:51 (11 years ago) parent5f39901
1 file changed+13−2
pkgs/top-level/all-packages.nix+13−2
pkgs/top-level/all-packages.nix+13−2
@@ -15035,8 +15035,12 @@ let
1503515035
1503615036 mg = callPackage ../applications/editors/mg { };
1503715037
15038+}; # self_ =
1503815039
15039− # Attributes for backward compatibility.
15040+
15041+ ### Deprecated aliases - for backward compatibility
15042+
15043+aliases = with self; rec {
1504015044 adobeReader = adobe-reader;
1504115045 arduino_core = arduino-core; # added 2015-02-04
1504215046 asciidocFull = asciidoc-full; # added 2014-06-22
@@ -15069,5 +15073,12 @@ let
1506915073 xlibs = xorg; # added 2015-09
1507015074 youtube-dl = pythonPackages.youtube-dl; # added 2015-06-07
1507115075 youtubeDL = youtube-dl; # added 2014-10-26
15076+};
15077+
15078+tweakAlias = _n: alias: with lib;
15079+ if !isDerivation alias && isAttrs alias then
15080+ removeAttrs alias ["recurseForDerivations"]
15081+ else alias;
15082+
15083+in lib.mapAttrs tweakAlias aliases // self; in pkgs
1507215084
15073−}; in self; in pkgs