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";
|
2023-12-07 02:38:23 +00:00
|
|
|
paths = map testWithNix nixVersions ++
|
|
|
|
|
|
|
|
#
|
|
|
|
# TEMPORARY MIGRATION MECHANISM
|
|
|
|
#
|
|
|
|
# This comment and the expression which follows it should be
|
|
|
|
# removed as part of resolving this issue:
|
|
|
|
#
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/272591
|
|
|
|
#
|
2024-06-06 07:07:09 +00:00
|
|
|
[(import ../../pkgs/test/release {
|
2024-06-07 04:26:49 +00:00
|
|
|
inherit pkgs lib nix;
|
2024-06-06 07:07:09 +00:00
|
|
|
})]
|
2023-12-07 02:38:23 +00:00
|
|
|
;
|
|
|
|
|
2023-05-26 16:32:38 +00:00
|
|
|
}
|