-
-
Notifications
You must be signed in to change notification settings - Fork 14
NPV 100
Philip Taron edited this page Feb 16, 2026
·
1 revision
Every package directory under pkgs/by-name should automatically define a corresponding top-level attribute in pkgs. If the attribute is missing, something has gone wrong with the auto-calling mechanism.
pkgs.{attribute_name}: This attribute is not defined but it should be defined automatically as {relative_package_file}
Given pkgs/by-name/fo/foo/package.nix:
{ someDrv }: someDrvIf pkgs.foo is not present in the evaluated package set, the error is:
pkgs.foo: This attribute is not defined but it should be defined automatically as pkgs/by-name/fo/foo/package.nix
Ensure the package.nix file evaluates correctly and returns a derivation. The attribute should be automatically provided by the pkgs/by-name infrastructure. If you are overriding the attribute in all-packages.nix, make sure the override is correct.