about summary refs log tree commit diff
path: root/lib/attrsets.nix
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2022-11-23 12:40:42 +0000
committerRobert Hensing <robert@roberthensing.nl>2023-05-31 14:57:37 +0200
commit5319ddf7dc2adc3d54eb9d498804f5c1576764d4 (patch)
tree8d77b3e0fa5059c81d783228b9763c1c523c5ede /lib/attrsets.nix
parenta1b9aae0f80242c63d9204607427f1b2b0ccb966 (diff)
lib.concatMapAttrs: Simplify stack trace
Diffstat (limited to 'lib/attrsets.nix')
-rw-r--r--lib/attrsets.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/attrsets.nix b/lib/attrsets.nix
index 1f11eaaa823d9..73b71f68db799 100644
--- a/lib/attrsets.nix
+++ b/lib/attrsets.nix
@@ -123,7 +123,11 @@ rec {
          { x = "a"; y = "b"; }
        => { x = "a"; xa = "a"; y = "b"; yb = "b"; }
   */
-  concatMapAttrs = f: flip pipe [ (mapAttrs f) attrValues (foldl' mergeAttrs { }) ];
+  concatMapAttrs = f: v:
+    foldl' mergeAttrs { }
+      (attrValues
+        (mapAttrs f v)
+      );
 
 
   /* Update or set specific paths of an attribute set.