2020-05-03 17:38:23 +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-20 10:41:00 +00:00
|
|
|
pkgs ? import ../.. {} // { lib = throw "pkgs.lib accessed, but the lib tests should use nixpkgs' lib path directly!"; },
|
2024-01-02 11:29:13 +00:00
|
|
|
nix ? pkgs-nixVersions.stable,
|
2024-05-15 15:35:15 +00:00
|
|
|
nixVersions ? [ pkgs-nixVersions.minimum nix pkgs-nixVersions.latest ],
|
2024-01-02 11:29:13 +00:00
|
|
|
pkgs-nixVersions ? import ./nix-for-tests.nix { inherit pkgs; },
|
2020-05-03 17:38:23 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
let
|
2023-10-09 19:29:22 +00:00
|
|
|
lib = import ../.;
|
2023-07-15 17:15:38 +00:00
|
|
|
testWithNix = nix:
|
2024-02-29 20:09:43 +00:00
|
|
|
import ./test-with-nix.nix { inherit lib nix pkgs; };
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
in
|
|
|
|
pkgs.symlinkJoin {
|
|
|
|
name = "nixpkgs-lib-tests";
|
2024-01-02 11:29:13 +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-20 14:57:18 +00:00
|
|
|
[(import ../../pkgs/test/release {
|
|
|
|
inherit pkgs lib nix;
|
|
|
|
})]
|
2024-01-02 11:29:13 +00:00
|
|
|
;
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
}
|