mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 21:25:30 +03:00
stdenv/check-meta: fix support for NIXPKGS_ALLOW_NONSOURCE=1
This commit is contained in:
parent
ca6034728b
commit
d02ac63f4f
1 changed files with 5 additions and 2 deletions
|
@ -16,8 +16,11 @@ let
|
||||||
allowUnfree = config.allowUnfree
|
allowUnfree = config.allowUnfree
|
||||||
|| builtins.getEnv "NIXPKGS_ALLOW_UNFREE" == "1";
|
|| builtins.getEnv "NIXPKGS_ALLOW_UNFREE" == "1";
|
||||||
|
|
||||||
allowNonSource = config.allowNonSource or true
|
allowNonSource = let
|
||||||
&& builtins.getEnv "NIXPKGS_ALLOW_NONSOURCE" != "0";
|
envVar = builtins.getEnv "NIXPKGS_ALLOW_NONSOURCE";
|
||||||
|
in if envVar != ""
|
||||||
|
then envVar != "0"
|
||||||
|
else config.allowNonSource or true;
|
||||||
|
|
||||||
allowlist = config.allowlistedLicenses or config.whitelistedLicenses or [];
|
allowlist = config.allowlistedLicenses or config.whitelistedLicenses or [];
|
||||||
blocklist = config.blocklistedLicenses or config.blacklistedLicenses or [];
|
blocklist = config.blocklistedLicenses or config.blacklistedLicenses or [];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue