2022-06-16 17:23:12 +00:00
|
|
|
{ lib, ... }:
|
|
|
|
lib.recurseIntoAttrs {
|
|
|
|
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/175196
|
2024-05-15 15:35:15 +00:00
|
|
|
# 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.
|
2022-06-16 17:23:12 +00:00
|
|
|
allowPkgsInPermittedInsecurePackages =
|
|
|
|
let pkgs = import ../.. {
|
|
|
|
config = {
|
2024-05-15 15:35:15 +00:00
|
|
|
permittedInsecurePackages = builtins.seq pkgs.glibc.version [];
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in pkgs.hello;
|
|
|
|
|
|
|
|
}
|