Merge pull request #272558 from infinisil/by-name-docs

pkgs/by-name: Mention possibility of avoiding alternate callPackage's
This commit is contained in:
Silvan Mosberger 2023-12-08 01:47:02 +01:00 committed by GitHub
commit c8a91a280a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,7 +99,9 @@ There's some limitations as to which packages can be defined using this structur
- Only packages defined using `pkgs.callPackage`.
This excludes packages defined using `pkgs.python3Packages.callPackage ...`.
Instead use the [category hierarchy](../README.md#category-hierarchy) for such attributes.
Instead:
- Either change the package definition to work with `pkgs.callPackage`.
- Or use the [category hierarchy](../README.md#category-hierarchy).
- Only top-level packages.
This excludes packages for other package sets like `pkgs.pythonPackages.*`.