diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-11-23 12:40:42 +0000 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2023-05-31 14:57:37 +0200 |
commit | 5319ddf7dc2adc3d54eb9d498804f5c1576764d4 (patch) | |
tree | 8d77b3e0fa5059c81d783228b9763c1c523c5ede /lib/attrsets.nix | |
parent | a1b9aae0f80242c63d9204607427f1b2b0ccb966 (diff) |
lib.concatMapAttrs: Simplify stack trace
Diffstat (limited to 'lib/attrsets.nix')
-rw-r--r-- | lib/attrsets.nix | 6 |
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. |