stdenv: fix use of config-specified allowInsecurePredicate
for some reason we were checking allowUnfreePredicate instead
This commit is contained in:
parent
d35b53f18a
commit
db7bee240e
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ let
|
||||||
!allowUnfreePredicate attrs;
|
!allowUnfreePredicate attrs;
|
||||||
|
|
||||||
allowInsecureDefaultPredicate = x: builtins.elem x.name (config.permittedInsecurePackages or []);
|
allowInsecureDefaultPredicate = x: builtins.elem x.name (config.permittedInsecurePackages or []);
|
||||||
allowInsecurePredicate = x: (config.allowUnfreePredicate or allowInsecureDefaultPredicate) x;
|
allowInsecurePredicate = x: (config.allowInsecurePredicate or allowInsecureDefaultPredicate) x;
|
||||||
|
|
||||||
hasAllowedInsecure = attrs:
|
hasAllowedInsecure = attrs:
|
||||||
(attrs.meta.knownVulnerabilities or []) == [] ||
|
(attrs.meta.knownVulnerabilities or []) == [] ||
|
||||||
|
|
Loading…
Reference in a new issue