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:
Silvan Mosberger 2024-02-08 00:02:45 +01:00
parent 3b01c53180
commit ebbe86306f
6 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,4 @@
self: super: {
foo = self._internalCallByNamePackageFile ./foo.nix;
bar = self._internalCallByNamePackageFile ./foo.nix;
}

View file

@ -0,0 +1 @@
{ someDrv }: someDrv

View file

@ -0,0 +1,3 @@
self: super: builtins.mapAttrs (name: value: value) {
foo = self.someDrv;
}

View file

@ -0,0 +1 @@
import <test-nixpkgs> { root = ./.; }

View file

@ -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.

View file

@ -0,0 +1 @@
{ someDrv }: someDrv