check-meta.nix: fix check for license type attr
The license type attribute is named `licenseType`, not `type`.
This commit is contained in:
@@ -90,7 +90,7 @@ let
|
||||
&& (
|
||||
if isList attrs.meta.license then
|
||||
any (l: elem l list) attrs.meta.license
|
||||
else if attrs.meta.license ? "type" then
|
||||
else if attrs.meta.license ? "licenseType" then
|
||||
lib.licenses.containsLicenses list attrs.meta.license
|
||||
else
|
||||
elem attrs.meta.license list
|
||||
@@ -105,7 +105,7 @@ let
|
||||
|
||||
isUnfree =
|
||||
licenses:
|
||||
if isAttrs licenses && licenses ? "type" then
|
||||
if isAttrs licenses && licenses ? "licenseType" then
|
||||
!(lib.licenses.isFree licenses)
|
||||
else if isAttrs licenses then
|
||||
!(licenses.free or true)
|
||||
|
||||
Reference in New Issue
Block a user