From 1ffdf02435292a1229d910c53f67561b8db97d80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Thu, 17 Feb 2022 13:09:23 +0100 Subject: [PATCH] stdenv/check-meta: remove onlyLicenses check --- pkgs/stdenv/generic/check-meta.nix | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pkgs/stdenv/generic/check-meta.nix b/pkgs/stdenv/generic/check-meta.nix index 44caa6838e8d..40cedd713ab0 100644 --- a/pkgs/stdenv/generic/check-meta.nix +++ b/pkgs/stdenv/generic/check-meta.nix @@ -19,16 +19,9 @@ let allowlist = config.allowlistedLicenses or config.whitelistedLicenses or []; blocklist = config.blocklistedLicenses or config.blacklistedLicenses or []; - onlyLicenses = list: - lib.lists.all (license: - let l = lib.licenses.${license.shortName or "BROKEN"} or false; in - if license == l then true else - throw ''‘${showLicense license}’ is not an attribute of lib.licenses'' - ) list; - areLicenseListsValid = if lib.mutuallyExclusive allowlist blocklist then - assert onlyLicenses allowlist; assert onlyLicenses blocklist; true + true else throw "allowlistedLicenses and blocklistedLicenses are not mutually exclusive.";