Merge pull request #75702 from risicle/ris-allow-insecure-predicate-name-fix

allowInsecureDefaultPredicate: fix to use getName
This commit is contained in:
Matthew Bauer 2019-12-17 16:22:59 -05:00 committed by GitHub
commit a3b15e50ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: