Loading pkgs/stdenv/generic/check-meta.nix +12 −16 Original line number Diff line number Diff line Loading @@ -81,11 +81,7 @@ let hasListedLicense = assert areLicenseListsValid; list: if list == [ ] then attrs: false else attrs: list: attrs: attrs ? meta.license && ( if isList attrs.meta.license then Loading Loading @@ -428,13 +424,13 @@ let } # --- Put checks that can be ignored here --- else if hasDeniedUnfreeLicense attrs && !(hasAllowlistedLicense attrs) then else if hasDeniedUnfreeLicense attrs && !(allowlist != [ ] && hasAllowlistedLicense attrs) then { reason = "unfree"; msg = "has an unfree license (‘${showLicense attrs.meta.license}’)"; remediation = remediate_allowlist "Unfree" (remediate_predicate "allowUnfreePredicate" attrs); } else if hasBlocklistedLicense attrs then else if blocklist != [ ] && hasBlocklistedLicense attrs then { reason = "blocklisted"; msg = "has a blocklisted license (‘${showLicense attrs.meta.license}’)"; Loading Loading
pkgs/stdenv/generic/check-meta.nix +12 −16 Original line number Diff line number Diff line Loading @@ -81,11 +81,7 @@ let hasListedLicense = assert areLicenseListsValid; list: if list == [ ] then attrs: false else attrs: list: attrs: attrs ? meta.license && ( if isList attrs.meta.license then Loading Loading @@ -428,13 +424,13 @@ let } # --- Put checks that can be ignored here --- else if hasDeniedUnfreeLicense attrs && !(hasAllowlistedLicense attrs) then else if hasDeniedUnfreeLicense attrs && !(allowlist != [ ] && hasAllowlistedLicense attrs) then { reason = "unfree"; msg = "has an unfree license (‘${showLicense attrs.meta.license}’)"; remediation = remediate_allowlist "Unfree" (remediate_predicate "allowUnfreePredicate" attrs); } else if hasBlocklistedLicense attrs then else if blocklist != [ ] && hasBlocklistedLicense attrs then { reason = "blocklisted"; msg = "has a blocklisted license (‘${showLicense attrs.meta.license}’)"; Loading