mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00

The called function defaults to `builtins.currentSystem` which does not work in pure-eval
28 lines
740 B
Nix
28 lines
740 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
lib.recurseIntoAttrs {
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/175196
|
|
# This test has since been simplified to test the recursion without
|
|
# the fluff to make it look like a real-world example.
|
|
# The requirement we test here is:
|
|
# - `permittedInsecurePackages` must be allowed to
|
|
# use `pkgs` to retrieve at least *some* information.
|
|
#
|
|
# Instead of `builtins.seq`, the list may be constructed based on actual package info.
|
|
allowPkgsInPermittedInsecurePackages =
|
|
let
|
|
pkgs' = import ../.. {
|
|
system = pkgs.stdenv.hostPlatform.system;
|
|
config = {
|
|
permittedInsecurePackages = builtins.seq pkgs'.glibc.version [ ];
|
|
};
|
|
};
|
|
|
|
in
|
|
pkgs'.hello;
|
|
|
|
}
|