4 # Removing recurseForDerivation prevents derivations of aliased attribute
5 # set to appear while listing all the packages available.
6 removeRecurseForDerivations = alias:
7 if alias.recurseForDerivations or false then
8 lib.removeAttrs alias ["recurseForDerivations"]
11 # Disabling distribution prevents top-level aliases for non-recursed package
12 # sets from building on Hydra.
13 removeDistribute = alias:
14 if lib.isDerivation alias then
15 lib.dontDistribute alias
18 # Make sure that we are not shadowing something from
20 checkInPkgs = n: alias: if builtins.hasAttr n prev
21 then throw "Alias ${n} is still in writers"
25 lib.mapAttrs (n: alias: removeDistribute
26 (removeRecurseForDerivations
27 (checkInPkgs n alias)))
32 /* Cleanup before 22.05, Added 2021-12-11 */
33 writePython2 = "Python 2 is EOL and the use of writers.writePython2 is deprecated.";
34 writePython2Bin = "Python 2 is EOL and the use of writers.writePython2Bin is deprecated.";