top-level: Fix dontRecurseIntoAttrs and include in lib

dontRecurseIntoAttrs was a noop (x: x), causing the expression
dontRecurseIntoAttrs (recurseIntoAttrs a) to have the wrong effect.
wip/yesman
Robert Hensing 5 years ago
parent 8935bfb4ac
commit fc64cf65ab
  1. 5
      lib/attrsets.nix
  2. 2
      lib/default.nix
  3. 2
      pkgs/top-level/all-packages.nix

@ -479,6 +479,11 @@ rec {
recurseIntoAttrs =
attrs: attrs // { recurseForDerivations = true; };
/* Undo the effect of recurseIntoAttrs.
*/
dontRecurseIntoAttrs =
attrs: attrs // { recurseForDerivations = false; };
/*** deprecated stuff ***/
zipWithNames = zipAttrsWithNames;

@ -71,7 +71,7 @@ let
zipAttrsWithNames zipAttrsWith zipAttrs recursiveUpdateUntil
recursiveUpdate matchAttrs overrideExisting getOutput getBin
getLib getDev chooseDevOutputs zipWithNames zip
recurseIntoAttrs;
recurseIntoAttrs dontRecurseIntoAttrs;
inherit (lists) singleton forEach foldr fold foldl foldl' imap0 imap1
concatMap flatten remove findSingle findFirst any all count
optional optionals toList range partition zipListsWith zipLists

@ -72,7 +72,7 @@ in
# the Attrs which is useful for testing massive changes. Ideally,
# every package subset not marked with recurseIntoAttrs should be
# marked with this.
dontRecurseIntoAttrs = x: x;
inherit (lib) dontRecurseIntoAttrs;
stringsWithDeps = lib.stringsWithDeps;

Loading…
Cancel
Save