meta.sourceProvenance: inline hasSourceProvenance
it may be what the license handling code does, but it's confusing and not very useful Co-authored-by: Adam Joseph <54836058+a-m-joseph@users.noreply.github.com>
This commit is contained in:
parent
7906ea6d9d
commit
5bb9bf4774
@ -89,13 +89,11 @@ let
|
||||
allowInsecurePredicate attrs ||
|
||||
builtins.getEnv "NIXPKGS_ALLOW_INSECURE" == "1";
|
||||
|
||||
hasSourceProvenance = attrs:
|
||||
attrs ? meta.sourceProvenance;
|
||||
|
||||
isNonSource = sourceTypes: lib.lists.any (t: !t.isSource) sourceTypes;
|
||||
|
||||
hasNonSourceProvenance = attrs:
|
||||
hasSourceProvenance attrs &&
|
||||
(attrs ? meta.sourceProvenance) &&
|
||||
isNonSource (lib.lists.toList attrs.meta.sourceProvenance);
|
||||
|
||||
# Allow granular checks to allow only some non-source-built packages
|
||||
|
Loading…
Reference in New Issue
Block a user