about summary refs log tree commit diff
path: root/pkgs/test/nixpkgs-check-by-name/tests/override-different-file/expected
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/test/nixpkgs-check-by-name/tests/override-different-file/expected')
-rw-r--r--pkgs/test/nixpkgs-check-by-name/tests/override-different-file/expected9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/test/nixpkgs-check-by-name/tests/override-different-file/expected b/pkgs/test/nixpkgs-check-by-name/tests/override-different-file/expected
index 51479e22d26fe..3566b15bdbc40 100644
--- a/pkgs/test/nixpkgs-check-by-name/tests/override-different-file/expected
+++ b/pkgs/test/nixpkgs-check-by-name/tests/override-different-file/expected
@@ -1 +1,8 @@
-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 { ... }` with a non-empty second argument.
+- Because pkgs/by-name/no/nonDerivation exists, the attribute `pkgs.nonDerivation` must be defined like
+
+    nonDerivation = callPackage ./pkgs/by-name/no/nonDerivation/package.nix { /* ... */ }
+
+  This is however not the case: The first `callPackage` argument is the wrong path.
+  It is defined in all-packages.nix:2:3 as
+
+    nonDerivation = callPackage ./someDrv.nix { /* ... */ }