Custom lib { lib }: with lib; { Generate an attr set from a list concatMapToAttrs :: (a -> AttrSet b) -> [a] -> AttrSet b concatMapToAttrs = f: flip pipe [ (map f) (foldl' mergeAttrs { }) ]; }