tests.config.allowPkgsInPermittedInsecurePackages: set system

The called function defaults to `builtins.currentSystem` which does not work in pure-eval
This commit is contained in:
jopejoe1 2025-05-09 21:44:06 +02:00
parent 948c3f5e2c
commit 16187b1175

View file

@ -1,4 +1,8 @@
{ lib, ... }:
{
lib,
pkgs,
...
}:
lib.recurseIntoAttrs {
# https://github.com/NixOS/nixpkgs/issues/175196
@ -11,13 +15,14 @@ lib.recurseIntoAttrs {
# Instead of `builtins.seq`, the list may be constructed based on actual package info.
allowPkgsInPermittedInsecurePackages =
let
pkgs = import ../.. {
pkgs' = import ../.. {
system = pkgs.stdenv.hostPlatform.system;
config = {
permittedInsecurePackages = builtins.seq pkgs.glibc.version [ ];
permittedInsecurePackages = builtins.seq pkgs'.glibc.version [ ];
};
};
in
pkgs.hello;
pkgs'.hello;
}