From 5319ddf7dc2adc3d54eb9d498804f5c1576764d4 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Wed, 23 Nov 2022 12:40:42 +0000 Subject: [PATCH] lib.concatMapAttrs: Simplify stack trace --- lib/attrsets.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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.