forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.nix
More file actions
29 lines (26 loc) · 760 Bytes
/
config.nix
File metadata and controls
29 lines (26 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
lib,
config,
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 = config // {
permittedInsecurePackages = builtins.seq pkgs'.glibc.version [ ];
};
};
in
pkgs'.hello;
}