Formatting

+4 -2
+4 -2
pkgs/stdenv/generic/default.nix
··· 23 23 # {pkgs, ...}: 24 24 # { 25 25 # allowUnfree = false; 26 - # allowUnfreePredicate = (x: pkgs.lib.hasPrefix "flashplayero-" x.name); 26 + # allowUnfreePredicate = (x: pkgs.lib.hasPrefix "flashplayer-" x.name); 27 27 # } 28 28 allowUnfreePredicate = config.allowUnfreePredicate or (x: false); 29 29 ··· 74 74 unsafeGetAttrPos "name" attrs; 75 75 pos' = if pos != null then "‘" + pos.file + ":" + toString pos.line + "’" else "«unknown-file»"; 76 76 in 77 - if !allowUnfree && (let l = lib.lists.toList attrs.meta.license or []; in lib.lists.elem "unfree" l || lib.lists.elem "unfree-redistributable" l) && !(allowUnfreePredicate attrs) then 77 + if !allowUnfree 78 + && (let l = lib.lists.toList attrs.meta.license or []; in lib.lists.elem "unfree" l || lib.lists.elem "unfree-redistributable" l) 79 + && !allowUnfreePredicate attrs then 78 80 throw '' 79 81 Package ‘${attrs.name}’ in ${pos'} has an unfree license, refusing to evaluate. You can set 80 82 { nixpkgs.config.allowUnfree = true; }