1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-09 17:46:29 +09:00

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 { lib.recurseIntoAttrs {
# https://github.com/NixOS/nixpkgs/issues/175196 # 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. # Instead of `builtins.seq`, the list may be constructed based on actual package info.
allowPkgsInPermittedInsecurePackages = allowPkgsInPermittedInsecurePackages =
let let
pkgs = import ../.. { pkgs' = import ../.. {
system = pkgs.stdenv.hostPlatform.system;
config = { config = {
permittedInsecurePackages = builtins.seq pkgs.glibc.version [ ]; permittedInsecurePackages = builtins.seq pkgs'.glibc.version [ ];
}; };
}; };
in in
pkgs.hello; pkgs'.hello;
} }