@afh @Infinisil Thanks for the link, but I agree with adamcstephens, this seems more like a dirty fix… The suggested code is, in my opinion:
- significantly harder to read (and also, it breaks some quick-and-dirty search practicses that I often use, for instance, I use
rg "mypackage ="to find in which file a package is defined… this will no longer work) - it does not use the
by-namestructure anyway, suggesting thatby-nameis missing important concepts.
Isn’t it a bit too early to push for its adoption? In particular, the fact that it is impossible to move a package from pkgs/by-name back to all packages is a significant issue to me. Like what if I start a package, and then realize that it needs multiple versions, and/or a MacOS port, that cannot (to the best of my knowledge) be realized without it?
Actually, I’m wondering: what is the problem that by-name tries to solve?
@adamcstephens that’s maybe the cleaner approach in my opinion… but still feels a bit hacky, as one still needs to read the all-package.nix file… which is precisely what I would not expect from a package in all-packages.nix.