summary refs log tree commit diff
path: root/lib/attrsets.nix
diff options
context:
space:
mode:
authorSymphorien Gibol <symphorien+git@xlumurb.eu>2018-08-14 01:01:08 +0200
committerSymphorien Gibol <symphorien+git@xlumurb.eu>2018-08-27 17:11:58 +0200
commit526d604670a456e59a3d20b657d864f85bb52839 (patch)
treefd287618013d8f0ba3a2caf2a6f898f0eff9bb92 /lib/attrsets.nix
parent6afd19e699c1505938d54312b522562fd75c8062 (diff)
downloadnixpkgs-526d604670a456e59a3d20b657d864f85bb52839.tar
nixpkgs-526d604670a456e59a3d20b657d864f85bb52839.tar.gz
nixpkgs-526d604670a456e59a3d20b657d864f85bb52839.tar.bz2
nixpkgs-526d604670a456e59a3d20b657d864f85bb52839.tar.lz
nixpkgs-526d604670a456e59a3d20b657d864f85bb52839.tar.xz
nixpkgs-526d604670a456e59a3d20b657d864f85bb52839.tar.zst
nixpkgs-526d604670a456e59a3d20b657d864f85bb52839.zip
module system: rework module merging
The asymptotic complexity is now much lower.
Diffstat (limited to 'lib/attrsets.nix')
-rw-r--r--lib/attrsets.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/attrsets.nix b/lib/attrsets.nix
index 0066fba362a..2c2319003d8 100644
--- a/lib/attrsets.nix
+++ b/lib/attrsets.nix
@@ -145,7 +145,7 @@ rec {
   foldAttrs = op: nul: list_of_attrs:
     fold (n: a:
         fold (name: o:
-          o // (listToAttrs [{inherit name; value = op n.${name} (a.${name} or nul); }])
+          o // { ${name} = op n.${name} (a.${name} or nul); }
         ) a (attrNames n)
     ) {} list_of_attrs;