tests.config.allowPkgsInPermittedInsecurePackages: set system
The called function defaults to `builtins.currentSystem` which does not work in pure-eval
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user