tests.nixpkgs-check-by-name: Improve an error message

+4 -4
+1 -1
pkgs/test/nixpkgs-check-by-name/src/eval.rs
··· 119 120 if !valid { 121 error_writer.write(&format!( 122 - "pkgs.{package_name}: This attribute is not defined as `pkgs.callPackage {} {{ ... }}`.", 123 relative_package_file.display() 124 ))?; 125 continue;
··· 119 120 if !valid { 121 error_writer.write(&format!( 122 + "pkgs.{package_name}: This attribute is manually defined (most likely in pkgs/top-level/all-packages.nix), which is only allowed if the definition is of the form `pkgs.callPackage {} {{ ... }}`.", 123 relative_package_file.display() 124 ))?; 125 continue;
+1 -1
pkgs/test/nixpkgs-check-by-name/tests/override-different-file/expected
··· 1 - pkgs.nonDerivation: This attribute is not defined as `pkgs.callPackage pkgs/by-name/no/nonDerivation/package.nix { ... }`.
··· 1 + pkgs.nonDerivation: This attribute is manually defined (most likely in pkgs/top-level/all-packages.nix), which is only allowed if the definition is of the form `pkgs.callPackage pkgs/by-name/no/nonDerivation/package.nix { ... }`.
+1 -1
pkgs/test/nixpkgs-check-by-name/tests/override-no-call-package/expected
··· 1 - pkgs.nonDerivation: This attribute is not defined as `pkgs.callPackage pkgs/by-name/no/nonDerivation/package.nix { ... }`.
··· 1 + pkgs.nonDerivation: This attribute is manually defined (most likely in pkgs/top-level/all-packages.nix), which is only allowed if the definition is of the form `pkgs.callPackage pkgs/by-name/no/nonDerivation/package.nix { ... }`.
+1 -1
pkgs/test/nixpkgs-check-by-name/tests/override-no-file/expected
··· 1 - pkgs.nonDerivation: This attribute is not defined as `pkgs.callPackage pkgs/by-name/no/nonDerivation/package.nix { ... }`.
··· 1 + pkgs.nonDerivation: This attribute is manually defined (most likely in pkgs/top-level/all-packages.nix), which is only allowed if the definition is of the form `pkgs.callPackage pkgs/by-name/no/nonDerivation/package.nix { ... }`.