mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 09:36:20 +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:
parent
948c3f5e2c
commit
16187b1175
1 changed files with 9 additions and 4 deletions
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue