Merge pull request #75702 from risicle/ris-allow-insecure-predicate-name-fix
allowInsecureDefaultPredicate: fix to use getName
This commit is contained in:
commit
a3b15e50ce
@ -67,7 +67,7 @@ let
|
||||
isUnfree (lib.lists.toList attrs.meta.license) &&
|
||||
!allowUnfreePredicate attrs;
|
||||
|
||||
allowInsecureDefaultPredicate = x: builtins.elem x.name (config.permittedInsecurePackages or []);
|
||||
allowInsecureDefaultPredicate = x: builtins.elem (getName x) (config.permittedInsecurePackages or []);
|
||||
allowInsecurePredicate = x: (config.allowInsecurePredicate or allowInsecureDefaultPredicate) x;
|
||||
|
||||
hasAllowedInsecure = attrs:
|
||||
|
Loading…
Reference in New Issue
Block a user