You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
If packages is an attrs of derivations, it doesn't need flattenTree as the tree is already flat.
If it has a hierarchy, it's incompatible with the packages schema since it only allows derivations as values. In that case, the package set has to be put in legacyPackages to conform with the flake schema, and having an additional recurseIntoAttrs doesn't matter.
It would make sense to add a flake-utils.lib.mkChecks for that. There might be also a smart variant flake-utils.lib.mkDefaultChecks self system that automatically picks the packages, nixosTests, ...
The need to add
recurseIntoAttrs
causes pollution of the attrset with the marker attribute. That prevents it from being set as thepackages
output of a flake.In
checks
, I do wish to use flattenTree. But inpackages
I don't. But I must in order to remove the marker attr. And that goes for other placespackages
ends up in.This makes me wish for a
flattenTree
that doesn't needrecurseIntoAttrs
.Dime for you thoughts?
The text was updated successfully, but these errors were encountered: