summary refs log tree commit diff
path: root/pkgs/stdenv/generic
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2018-04-17 16:02:50 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-04-17 16:02:50 -0400
commitcb212cf549a0a92d3416805a149c0a277eba1fcf (patch)
treedeec9585fd563f7e77c452f89df51a975ac87116 /pkgs/stdenv/generic
parent3955b846984201b190ee72bbd0c65ba5c4067d91 (diff)
downloadnixlib-cb212cf549a0a92d3416805a149c0a277eba1fcf.tar
nixlib-cb212cf549a0a92d3416805a149c0a277eba1fcf.tar.gz
nixlib-cb212cf549a0a92d3416805a149c0a277eba1fcf.tar.bz2
nixlib-cb212cf549a0a92d3416805a149c0a277eba1fcf.tar.lz
nixlib-cb212cf549a0a92d3416805a149c0a277eba1fcf.tar.xz
nixlib-cb212cf549a0a92d3416805a149c0a277eba1fcf.tar.zst
nixlib-cb212cf549a0a92d3416805a149c0a277eba1fcf.zip
meta: Add `NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM` for consistency
Diffstat (limited to 'pkgs/stdenv/generic')
-rw-r--r--pkgs/stdenv/generic/check-meta.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/stdenv/generic/check-meta.nix b/pkgs/stdenv/generic/check-meta.nix
index 24b5205ffe6f..11c11b5d77b0 100644
--- a/pkgs/stdenv/generic/check-meta.nix
+++ b/pkgs/stdenv/generic/check-meta.nix
@@ -8,7 +8,8 @@ let
   # for why this defaults to false, but I (@copumpkin) want to default it to true soon.
   shouldCheckMeta = config.checkMeta or false;
 
-  allowUnfree = config.allowUnfree or false || builtins.getEnv "NIXPKGS_ALLOW_UNFREE" == "1";
+  allowUnfree = config.allowUnfree or false
+    || builtins.getEnv "NIXPKGS_ALLOW_UNFREE" == "1";
 
   whitelist = config.whitelistedLicenses or [];
   blacklist = config.blacklistedLicenses or [];
@@ -35,9 +36,11 @@ let
   hasBlacklistedLicense = assert areLicenseListsValid; attrs:
     hasLicense attrs && builtins.elem attrs.meta.license blacklist;
 
-  allowBroken = config.allowBroken or false || builtins.getEnv "NIXPKGS_ALLOW_BROKEN" == "1";
+  allowBroken = config.allowBroken or false
+    || builtins.getEnv "NIXPKGS_ALLOW_BROKEN" == "1";
 
-  allowUnsupportedSystem = config.allowUnsupportedSystem or false;
+  allowUnsupportedSystem = config.allowUnsupportedSystem or false
+    || builtins.getEnv "NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM" == "1";
 
   isUnfree = licenses: lib.lists.any (l:
     !l.free or true || l == "unfree" || l == "unfree-redistributable") licenses;