2020-04-25 20:07:43 +00:00
|
|
|
{ # The pkgs used for dependencies for the testing itself
|
|
|
|
# Don't test properties of pkgs.lib, but rather the lib in the parent directory
|
2023-01-18 00:37:13 +00:00
|
|
|
pkgs ? import ../.. {} // { lib = throw "pkgs.lib accessed, but the lib tests should use nixpkgs' lib path directly!"; },
|
2023-11-09 10:08:44 +00:00
|
|
|
nix ? pkgs-nixVersions.stable,
|
2024-04-22 08:09:39 +00:00
|
|
|
nixVersions ? [ pkgs-nixVersions.minimum nix pkgs-nixVersions.latest ],
|
2023-11-09 10:08:44 +00:00
|
|
|
pkgs-nixVersions ? import ./nix-for-tests.nix { inherit pkgs; },
|
2020-04-25 20:07:43 +00:00
|
|
|
}:
|
2015-02-08 21:51:20 +00:00
|
|
|
|
2023-05-26 16:32:38 +00:00
|
|
|
let
|
2023-08-16 22:55:32 +00:00
|
|
|
lib = import ../.;
|
2023-05-26 16:32:38 +00:00
|
|
|
testWithNix = nix:
|
2024-02-01 16:15:58 +00:00
|
|
|
import ./test-with-nix.nix { inherit lib nix pkgs; };
|
2023-05-26 16:32:38 +00:00
|
|
|
|
|
|
|
in
|
|
|
|
pkgs.symlinkJoin {
|
|
|
|
name = "nixpkgs-lib-tests";
|
2024-11-14 22:14:20 +00:00
|
|
|
paths = map testWithNix nixVersions;
|
2023-05-26 16:32:38 +00:00
|
|
|
}
|