allowNonSourcePredicate: use example of categorical permissivity

Co-authored-by: Adam Joseph <54836058+a-m-joseph@users.noreply.github.com>
This commit is contained in:
Robert Scott 2022-05-20 19:31:18 +01:00 committed by Alexander Foremny
parent 095eb91533
commit 7906ea6d9d

View File

@ -103,7 +103,7 @@ let
# {pkgs, ...}:
# {
# allowNonSource = false;
# allowNonSourcePredicate = (x: pkgs.lib.hasPrefix "pulumi" x.name);
# allowNonSourcePredicate = with lib.lists; pkg: !(any (p: !p.isSource && p!=lib.sourceTypes.binaryFirmware) (toList pkg.meta.sourceProvenance));
# }
allowNonSourcePredicate = config.allowNonSourcePredicate or (x: false);