···20 ];
21 }).config;
2223- checkGithubId = lib.optional (checkedAttrs.github != null && checkedAttrs.githubId == null) ''
24 echo ${lib.escapeShellArg (lib.showOption prefix)}': If `github` is specified, `githubId` must be too.'
25 # Calling this too often would hit non-authenticated API limits, but this
26 # shouldn't happen since such errors will get fixed rather quickly
···28 id=$(jq -r '.id' <<< "$info")
29 echo "The GitHub ID for GitHub user ${checkedAttrs.github} is $id:"
30 echo -e " githubId = $id;\n"
0031 '';
32- in lib.deepSeq checkedAttrs checkGithubId;
3334 missingGithubIds = lib.concatLists (lib.mapAttrsToList checkMaintainer lib.maintainers);
35
···20 ];
21 }).config;
2223+ checks = lib.optional (checkedAttrs.github != null && checkedAttrs.githubId == null) ''
24 echo ${lib.escapeShellArg (lib.showOption prefix)}': If `github` is specified, `githubId` must be too.'
25 # Calling this too often would hit non-authenticated API limits, but this
26 # shouldn't happen since such errors will get fixed rather quickly
···28 id=$(jq -r '.id' <<< "$info")
29 echo "The GitHub ID for GitHub user ${checkedAttrs.github} is $id:"
30 echo -e " githubId = $id;\n"
31+ '' ++ lib.optional (checkedAttrs.email == null && checkedAttrs.github == null && checkedAttrs.matrix == null) ''
32+ echo ${lib.escapeShellArg (lib.showOption prefix)}': At least one of `email`, `github` or `matrix` must be specified, so that users know how to reach you.'
33 '';
34+ in lib.deepSeq checkedAttrs checks;
3536 missingGithubIds = lib.concatLists (lib.mapAttrsToList checkMaintainer lib.maintainers);
37