The need to add recurseIntoAttrs causes pollution of the attrset with the marker attribute. That prevents it from being set as the packages output of a flake.
In checks, I do wish to use flattenTree. But in packages I don't. But I must in order to remove the marker attr. And that goes for other places packages ends up in.
This makes me wish for a flattenTree that doesn't need recurseIntoAttrs.
Dime for you thoughts?