···2727 lib.lists.all (license:
2828 let l = lib.licenses.${license.shortName or "BROKEN"} or false; in
2929 if license == l then true else
3030- throw ''‘${builtins.toJSON license}’ is not an attribute of lib.licenses''
3030+ throw ''‘${showLicense license}’ is not an attribute of lib.licenses''
3131 ) list;
32323333 mutuallyExclusive = a: b:
···7272 hasLicense attrs &&
7373 isUnfree (lib.lists.toList attrs.meta.license) &&
7474 !allowUnfreePredicate attrs;
7575+7676+ showLicense = license: license.shortName or "unknown";
75777678 defaultNativeBuildInputs = extraBuildInputs ++
7779 [ ../../build-support/setup-hooks/move-docs.sh
···121123122124 licenseAllowed = attrs:
123125 if hasDeniedUnfreeLicense attrs && !(hasWhitelistedLicense attrs) then
124124- throwEvalHelp "Unfree" "has an unfree license ‘${builtins.toJSON attrs.meta.license}’ which is not whitelisted"
126126+ throwEvalHelp "Unfree" "has an unfree license (‘${showLicense attrs.meta.license}’)"
125127 else if hasBlacklistedLicense attrs then
126126- throwEvalHelp "blacklisted" "has the ‘${builtins.toJSON attrs.meta.license}’ license which is blacklisted"
128128+ throwEvalHelp "blacklisted" "has a blacklisted license (‘${showLicense attrs.meta.license}’)"
127129 else if !allowBroken && attrs.meta.broken or false then
128130 throwEvalHelp "Broken" "is marked as broken"
129131 else if !allowBroken && attrs.meta.platforms or null != null && !lib.lists.elem result.system attrs.meta.platforms then