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:
Robert Scott
2022-05-30 16:27:34 +08:00
committed by Alexander Foremny
co-authored by Alexander Foremny
parent 81bc106e08
commit 095eb91533
+2 -2
View File
@@ -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;