With !allowUnfree, reject unfree-redistributable packages as well
This commit is contained in:
parent
8dba5cd411
commit
d9d9723ca7
@ -41,7 +41,7 @@ let
|
|||||||
# Add a utility function to produce derivations that use this
|
# Add a utility function to produce derivations that use this
|
||||||
# stdenv and its shell.
|
# stdenv and its shell.
|
||||||
mkDerivation = attrs:
|
mkDerivation = attrs:
|
||||||
if !allowUnfree && attrs.meta.license or "" == "unfree" then
|
if !allowUnfree && (let l = attrs.meta.license or ""; in l == "unfree" || l == "unfree-redistributable") then
|
||||||
throw "package ‘${attrs.name}’ has an unfree license, refusing to evaluate"
|
throw "package ‘${attrs.name}’ has an unfree license, refusing to evaluate"
|
||||||
else
|
else
|
||||||
(derivation (
|
(derivation (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user