meta.sourceProvenance: disallow string values
strings complicate reasoning about values and may not be needed with `sourceProvenance` Co-authored-by: Alexander Foremny <aforemny@posteo.de>
This commit is contained in:
parent
81bc106e08
commit
095eb91533
@ -92,7 +92,7 @@ let
|
||||
hasSourceProvenance = attrs:
|
||||
attrs ? meta.sourceProvenance;
|
||||
|
||||
isNonSource = sourceTypes: lib.lists.any (t: !t.isSource or true) sourceTypes;
|
||||
isNonSource = sourceTypes: lib.lists.any (t: !t.isSource) sourceTypes;
|
||||
|
||||
hasNonSourceProvenance = attrs:
|
||||
hasSourceProvenance attrs &&
|
||||
@ -260,7 +260,7 @@ let
|
||||
downloadPage = str;
|
||||
changelog = either (listOf str) str;
|
||||
license = either (listOf lib.types.attrs) (either lib.types.attrs str);
|
||||
sourceProvenance = either (listOf lib.types.attrs) (either lib.types.attrs str);
|
||||
sourceProvenance = either (listOf lib.types.attrs) lib.types.attrs;
|
||||
maintainers = listOf (attrsOf str);
|
||||
priority = int;
|
||||
platforms = listOf str;
|
||||
|
Loading…
Reference in New Issue
Block a user