core/lib/tests/release.nix

37 lines
940 B
Nix
Raw Normal View History

2024-06-30 08:16:52 +00:00
{
# The pkgs used for dependencies for the testing itself
2024-05-01 22:14:04 +00:00
# Don't test properties of pkgs.lib, but rather the lib in the parent directory
2024-06-30 08:16:52 +00:00
pkgs ? import /etc/nix/inputs/nixpkgs { } // {
lib = throw "pkgs.lib accessed, but the lib tests should use nixpkgs' lib path directly!";
},
2024-05-01 22:14:04 +00:00
nix ? pkgs-nixVersions.stable,
2024-06-30 08:16:52 +00:00
nixVersions ? [
pkgs-nixVersions.minimum
nix
pkgs-nixVersions.latest
],
2024-05-01 22:14:04 +00:00
pkgs-nixVersions ? import ./nix-for-tests.nix { inherit pkgs; },
}:
let
lib = import ../.;
2024-06-30 08:16:52 +00:00
testWithNix = nix: import ./test-with-nix.nix { inherit lib nix pkgs; };
2024-05-01 22:14:04 +00:00
in
2024-06-30 08:16:52 +00:00
pkgs.symlinkJoin {
name = "nixpkgs-lib-tests";
paths = map testWithNix nixVersions # ++
2024-05-01 22:14:04 +00:00
2024-06-30 08:16:52 +00:00
#
# 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 {})]
;
2024-05-01 22:14:04 +00:00
2024-06-30 08:16:52 +00:00
}