nix-community / flakelight

Framework for simplifying flake setup [maintainer=@accelbread]
MIT License
177 stars 3 forks source link

Support deep autoloading #4

Closed noverby closed 8 months ago

noverby commented 8 months ago

It seems autoloading is only supporting one directory level for autoloading.

So this works:

nix/packages/pkg1.nix

But not this:

nix/packages/pkg-group/pkg1.nix
accelbread commented 8 months ago

Hmm, I'm not sure how this would generalize.

Right now we have, in order that is checked for:

Not sure what nix/packages/pkg-group/pkg1.nix would be. I would assume it would set packages.pkg-group.pkg1 though that is not valid since packages.x86_64-linux.pkg-group.pkg1 is not valid. Only attribute, as far as I know, that allows arbitrary structure is legacyPackages.

noverby commented 8 months ago

I didn't know directory-based package categories will be deprecated in favor of meta.categories with RFC 146.

Which means supporting this does not make sense anymore.