at 24.11-pre 945 B view raw
1{ # The pkgs used for dependencies for the testing itself 2 # Don't test properties of pkgs.lib, but rather the lib in the parent directory 3 pkgs ? import ../.. {} // { lib = throw "pkgs.lib accessed, but the lib tests should use nixpkgs' lib path directly!"; }, 4 nix ? pkgs-nixVersions.stable, 5 nixVersions ? [ pkgs-nixVersions.minimum nix pkgs-nixVersions.latest ], 6 pkgs-nixVersions ? import ./nix-for-tests.nix { inherit pkgs; }, 7}: 8 9let 10 lib = import ../.; 11 testWithNix = nix: 12 import ./test-with-nix.nix { inherit lib nix pkgs; }; 13 14in 15 pkgs.symlinkJoin { 16 name = "nixpkgs-lib-tests"; 17 paths = map testWithNix nixVersions ++ 18 19 # 20 # TEMPORARY MIGRATION MECHANISM 21 # 22 # This comment and the expression which follows it should be 23 # removed as part of resolving this issue: 24 # 25 # https://github.com/NixOS/nixpkgs/issues/272591 26 # 27 [(import ../../pkgs/test/release {})] 28 ; 29 30 }