tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
Formatting
Eelco Dolstra
11 years ago
0a8605de
37889e2b
+4
-2
1 changed file
expand all
collapse all
unified
split
pkgs
stdenv
generic
default.nix
+4
-2
pkgs/stdenv/generic/default.nix
···
23
23
# {pkgs, ...}:
24
24
# {
25
25
# allowUnfree = false;
26
26
-
# allowUnfreePredicate = (x: pkgs.lib.hasPrefix "flashplayero-" x.name);
26
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
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
77
+
if !allowUnfree
78
78
+
&& (let l = lib.lists.toList attrs.meta.license or []; in lib.lists.elem "unfree" l || lib.lists.elem "unfree-redistributable" l)
79
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; }