2020-04-25 16:07:43 -04: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-17 19:37:13 -05:00
|
|
|
pkgs ? import ../.. {} // { lib = throw "pkgs.lib accessed, but the lib tests should use nixpkgs' lib path directly!"; },
|
2023-11-09 05:08:44 -05:00
|
|
|
nix ? pkgs-nixVersions.stable,
|
2024-04-22 04:09:39 -04:00
|
|
|
nixVersions ? [ pkgs-nixVersions.minimum nix pkgs-nixVersions.latest ],
|
2023-11-09 05:08:44 -05:00
|
|
|
pkgs-nixVersions ? import ./nix-for-tests.nix { inherit pkgs; },
|
2020-04-25 16:07:43 -04:00
|
|
|
}:
|
2015-02-08 16:51:20 -05:00
|
|
|
|
2023-05-26 12:32:38 -04:00
|
|
|
let
|
2023-08-16 18:55:32 -04:00
|
|
|
lib = import ../.;
|
2023-05-26 12:32:38 -04:00
|
|
|
testWithNix = nix:
|
2024-02-01 11:15:58 -05:00
|
|
|
import ./test-with-nix.nix { inherit lib nix pkgs; };
|
2023-05-26 12:32:38 -04:00
|
|
|
|
|
|
|
in
|
|
|
|
pkgs.symlinkJoin {
|
|
|
|
name = "nixpkgs-lib-tests";
|
2023-12-06 21:38:23 -05: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 03:07:09 -04:00
|
|
|
[(import ../../pkgs/test/release {
|
2024-06-07 00:26:49 -04:00
|
|
|
inherit pkgs lib nix;
|
2024-06-06 03:07:09 -04:00
|
|
|
})]
|
2023-12-06 21:38:23 -05:00
|
|
|
;
|
|
|
|
|
2023-05-26 12:32:38 -04:00
|
|
|
}
|