9494 {
9595 kindName = "maintainerless" ;
9696 condition =
97- config : attrs : outputMeta :
98- outputMeta . requiresMaintainers
97+ config : attrs : requiresMaintainers :
98+ requiresMaintainers
9999 && ( attrs . meta . maintainers or [ ] == [ ] )
100100 && ( attrs . meta . teams or [ ] == [ ] )
101101 && ( attrs . meta . hasNoMaintainersButDependents or false == false ) ;
@@ -117,16 +117,16 @@ rec {
117117 else
118118 x : false ;
119119 in
120- attrs : outputMeta : attrs . meta . broken or false && ! allowBroken && ! allowBrokenPredicate attrs ;
120+ attrs : requiresMaintainers : attrs . meta . broken or false && ! allowBroken && ! allowBrokenPredicate attrs ;
121121 value . message = "This package is broken." ;
122122 }
123123 ] ;
124124
125125 genAutomaticProblems =
126- config : attrs : outputMeta :
126+ config : attrs : requiresMaintainers :
127127 listToAttrs (
128128 map ( problem : lib . nameValuePair problem . kindName problem . value ) (
129- filter ( problem : problem . condition config attrs outputMeta ) automaticProblems
129+ filter ( problem : problem . condition config attrs requiresMaintainers ) automaticProblems
130130 )
131131 ) ;
132132
@@ -425,6 +425,7 @@ rec {
425425
426426 genCheckProblems =
427427 config :
428+ defaultRequiresMaintainers :
428429 let
429430 # This is here so that it gets cached for a (checkProblems config) thunk
430431 inherit ( genHandlerSwitch config )
@@ -435,17 +436,18 @@ rec {
435436 problem : problem // { condition = problem . condition config ; }
436437 ) automaticProblems ;
437438 in
438- attrs : outputMeta :
439+ attrs : pos :
439440 let
440441 pname = getName attrs ;
441442 manualProblems = attrs . meta . problems or { } ;
443+ requiresMaintainers = attrs . meta . requiresMaintainers or ( defaultRequiresMaintainers attrs pos ) ;
442444 in
443445 if
444446 # Fast path for when there's no problem that needs to be handled
445447 # No automatic problems that needs handling
446448 all (
447449 problem :
448- problem . condition attrs outputMeta
450+ problem . condition attrs requiresMaintainers
449451 -> handlerForProblem pname problem . kindName problem . kindName == "ignore"
450452 ) automaticProblemsConfigCache
451453 && (
@@ -461,7 +463,7 @@ rec {
461463 else
462464 # Slow path, only here we actually figure out which problems we need to handle
463465 let
464- problems = attrs . meta . problems or { } // genAutomaticProblems config attrs outputMeta ;
466+ problems = attrs . meta . problems or { } // genAutomaticProblems config attrs requiresMaintainers ;
465467 problemsToHandle = filter ( v : v . handler != "ignore" ) (
466468 mapAttrsToList ( name : problem : rec {
467469 inherit name ;
0 commit comments