Merge pull request #177549 from dotlambda/allow-nonsource-envvar

stdenv/check-meta: support NIXPKGS_ALLOW_NONSOURCE=0
This commit is contained in:
Robert Scott 2022-06-13 21:45:10 +01:00 committed by GitHub
commit 81255a190e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ let
|| builtins.getEnv "NIXPKGS_ALLOW_UNFREE" == "1";
allowNonSource = config.allowNonSource or true
|| builtins.getEnv "NIXPKGS_ALLOW_NONSOURCE" == "1";
&& builtins.getEnv "NIXPKGS_ALLOW_NONSOURCE" != "0";
allowlist = config.allowlistedLicenses or config.whitelistedLicenses or [];
blocklist = config.blocklistedLicenses or config.blacklistedLicenses or [];