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
# {pkgs, ...}:
24
# {
25
# allowUnfree = false;
26
-
# allowUnfreePredicate = (x: pkgs.lib.hasPrefix "flashplayero-" x.name);
27
# }
28
allowUnfreePredicate = config.allowUnfreePredicate or (x: false);
29
···
74
unsafeGetAttrPos "name" attrs;
75
pos' = if pos != null then "‘" + pos.file + ":" + toString pos.line + "’" else "«unknown-file»";
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
0
0
78
throw ''
79
Package ‘${attrs.name}’ in ${pos'} has an unfree license, refusing to evaluate. You can set
80
{ nixpkgs.config.allowUnfree = true; }
···
23
# {pkgs, ...}:
24
# {
25
# allowUnfree = false;
26
+
# allowUnfreePredicate = (x: pkgs.lib.hasPrefix "flashplayer-" x.name);
27
# }
28
allowUnfreePredicate = config.allowUnfreePredicate or (x: false);
29
···
74
unsafeGetAttrPos "name" attrs;
75
pos' = if pos != null then "‘" + pos.file + ":" + toString pos.line + "’" else "«unknown-file»";
76
in
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
80
throw ''
81
Package ‘${attrs.name}’ in ${pos'} has an unfree license, refusing to evaluate. You can set
82
{ nixpkgs.config.allowUnfree = true; }