Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 pkgs, 4 ... 5}: 6lib.recurseIntoAttrs { 7 8 # https://github.com/NixOS/nixpkgs/issues/175196 9 # This test has since been simplified to test the recursion without 10 # the fluff to make it look like a real-world example. 11 # The requirement we test here is: 12 # - `permittedInsecurePackages` must be allowed to 13 # use `pkgs` to retrieve at least *some* information. 14 # 15 # Instead of `builtins.seq`, the list may be constructed based on actual package info. 16 allowPkgsInPermittedInsecurePackages = 17 let 18 pkgs' = import ../.. { 19 system = pkgs.stdenv.hostPlatform.system; 20 config = { 21 permittedInsecurePackages = builtins.seq pkgs'.glibc.version [ ]; 22 }; 23 }; 24 25 in 26 pkgs'.hello; 27 28}