From 38c776b6799195fae58808b19d9b19d198ca2896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 13 Jun 2022 17:34:57 +0000 Subject: [PATCH] stdenv/check-meta: support NIXPKGS_ALLOW_NONSOURCE=0 --- pkgs/stdenv/generic/check-meta.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/stdenv/generic/check-meta.nix b/pkgs/stdenv/generic/check-meta.nix index 1479671db417..f9bea506af6e 100644 --- a/pkgs/stdenv/generic/check-meta.nix +++ b/pkgs/stdenv/generic/check-meta.nix @@ -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 [];