depot/third_party/nixpkgs/pkgs/test/config.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

21 lines
672 B
Nix

{ lib, ... }:
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 ../.. {
config = {
permittedInsecurePackages = builtins.seq pkgs.glibc.version [];
};
};
in pkgs.hello;
}