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