tests.nixpkgs-check-by-name: More tests
For some previously untested cases. In a future commit, those tests will also be adjusted slightly
This commit is contained in:
parent
3b01c53180
commit
ebbe86306f
6 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
self: super: {
|
||||
foo = self._internalCallByNamePackageFile ./foo.nix;
|
||||
bar = self._internalCallByNamePackageFile ./foo.nix;
|
||||
}
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
{ someDrv }: someDrv
|
|
@ -0,0 +1,3 @@
|
|||
self: super: builtins.mapAttrs (name: value: value) {
|
||||
foo = self.someDrv;
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
import <test-nixpkgs> { root = ./.; }
|
|
@ -0,0 +1 @@
|
|||
pkgs.foo: 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/fo/foo/package.nix { ... }` with a non-empty second argument.
|
|
@ -0,0 +1 @@
|
|||
{ someDrv }: someDrv
|
Loading…
Reference in a new issue